mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-09 16:10:50 +03:00
Run JavaScript only when DOM is ready.
This commit is contained in:
parent
22695ec8a7
commit
2f49df8242
|
@ -19,6 +19,7 @@ function getCookie(c_name)
|
|||
return c_value;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
// JSON highlighting.
|
||||
prettyPrint();
|
||||
|
||||
|
@ -63,3 +64,4 @@ if (selectedTab && selectedTab.length > 0) {
|
|||
$(window).load(function(){
|
||||
$('#errorModal').modal('show');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user