script load for ie
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 16 Apr 2012 13:16:11 +0000 (15:16 +0200)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 16 Apr 2012 13:16:11 +0000 (15:16 +0200)
apps/wolnelektury_core/static/js/widget.js

index 2d9a42b..54700de 100644 (file)
@@ -96,5 +96,11 @@ function wl_initialize_after_load(just_loaded) {
 }
 
 scriptJ.onload = function() { wl_initialize_after_load('jquery'); };
 }
 
 scriptJ.onload = function() { wl_initialize_after_load('jquery'); };
+scriptJ.onreadystatechange = function() { if (scriptJ.readyState == 'complete') { wl_initialize_after_load('jquery'); } };
+
 scriptUI.onload = function() { wl_initialize_after_load('ui'); };
 scriptUI.onload = function() { wl_initialize_after_load('ui'); };
+scriptUI.onreadystatechange = function() { if (scriptUI.readyState == 'complete') { wl_initialize_after_load('jquery'); } };
+
 scriptSearch.onload = function() { wl_initialize_after_load('search'); };
 scriptSearch.onload = function() { wl_initialize_after_load('search'); };
+scriptSearch.onreadystatechange = function() { if (scriptSearch.readyState == 'complete') { wl_initialize_after_load('jquery'); } };
+