mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-15 05:13:43 +03:00
Merge pull request #3989 from wlanslovenija/delay-javascript
Run JavaScript only when DOM is ready
This commit is contained in:
commit
1339fba117
|
@ -19,6 +19,7 @@ function getCookie(c_name)
|
||||||
return c_value;
|
return c_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
// JSON highlighting.
|
// JSON highlighting.
|
||||||
prettyPrint();
|
prettyPrint();
|
||||||
|
|
||||||
|
@ -63,3 +64,4 @@ if (selectedTab && selectedTab.length > 0) {
|
||||||
$(window).load(function(){
|
$(window).load(function(){
|
||||||
$('#errorModal').modal('show');
|
$('#errorModal').modal('show');
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user