From: Marcin Koziej Date: Mon, 16 Apr 2012 13:16:11 +0000 (+0200) Subject: script load for ie X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ff0ce1c6ab545ab8b7f4166caae9d59e6a67b421?ds=sidebyside script load for ie --- diff --git a/apps/wolnelektury_core/static/js/widget.js b/apps/wolnelektury_core/static/js/widget.js index 2d9a42bb3..54700de7d 100644 --- a/apps/wolnelektury_core/static/js/widget.js +++ b/apps/wolnelektury_core/static/js/widget.js @@ -96,5 +96,11 @@ function wl_initialize_after_load(just_loaded) { } 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.onreadystatechange = function() { if (scriptUI.readyState == 'complete') { wl_initialize_after_load('jquery'); } }; + scriptSearch.onload = function() { wl_initialize_after_load('search'); }; +scriptSearch.onreadystatechange = function() { if (scriptSearch.readyState == 'complete') { wl_initialize_after_load('jquery'); } }; +