Merge pull request #3989 from wlanslovenija/delay-javascript

Run JavaScript only when DOM is ready
This commit is contained in:
José Padilla 2016-03-16 22:53:27 -04:00
commit 1339fba117

View File

@ -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');
});
});