src/org/openbravo/erpCommon/utility/PopupLoading.html
changeset 16507 4914bc66fa28
parent 16506 408a83fb81ae
child 16508 15df713b1e43
--- a/src/org/openbravo/erpCommon/utility/PopupLoading.html	Mon May 14 03:07:09 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/PopupLoading.html	Mon May 14 04:06:09 2012 +0200
@@ -38,16 +38,20 @@
   <script language="javascript">
     function onLoadDo() {
       moreOnLoadDoFunctions();
-      var i=0;
-      var setOpenerInterval = setInterval(
-        function() {
-          if (window.opener || i === 30000) {
-            window.opener.setPopupLoadingWindowLoaded(true);
-            clearInterval(setOpenerInterval);
-          } else {
-            i++;
-          }
-        }, 10);
+      if (isIE9Strict) {
+        var i=0;
+        var setOpenerInterval = setInterval(
+          function() {
+            if (window.opener || i === 30000) {
+              window.opener.setPopupLoadingWindowLoaded(true);
+              clearInterval(setOpenerInterval);
+            } else {
+              i++;
+            }
+          }, 200);
+      } else {
+        window.opener.setPopupLoadingWindowLoaded(true);
+      }
       return true;
     }
   </script>