Related to issue 20480: Proper function definition
authorDavid Baz Fayos <david.baz@openbravo.com>
Sun, 13 May 2012 21:10:58 +0200
changeset 16503 bebb88e36e56
parent 16500 791f143310a1
child 16504 e08294a7f372
Related to issue 20480: Proper function definition
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js	Sat May 12 16:52:38 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js	Sun May 13 21:10:58 2012 +0200
@@ -363,12 +363,8 @@
         if (isModal !== false) {
           isModal = true;
         }
-        var _htmlCode, _isIE9Strict = false,
-            _navUserAgent = navigator.userAgent.toUpperCase();
-        if (_navUserAgent.indexOf("MSIE") !== -1 && (document.documentMode && document.documentMode >= 9)) {
-          _isIE9Strict = true;
-        }
-        if (_isIE9Strict || _navUserAgent.indexOf("MSIE") === -1) { // IE >= 9 (Strict) or any other browser
+        var _htmlCode, _navUserAgent = navigator.userAgent.toUpperCase();
+        if (OB.Utilities.isIE9Strict || _navUserAgent.indexOf("MSIE") === -1) { // IE >= 9 (Strict) or any other browser
           _htmlCode = '<html><head></head><body style="margin: 0; padding: 0; border: none;">' + '<iframe id="MDIPopupContainer" name="MDIPopupContainer" style="margin: 0; padding: 0; border: none; width: 100%; height: 100%;"></iframe>' + '<iframe name="frameMenu" scrolling="no" src="' + OB.Application.contextUrl + 'utility/VerticalMenu.html?Command=HIDE" id="paramFrameMenuLoading" style="margin: 0px; padding: 0px; border: 0px; height: 0px; width: 0px;"></iframe>' + '</body></html>';
         } else { // IE <= 8
           _htmlCode = '<html><head></head><frameset cols="*, 0%" rows="*" frameborder="no" border="0" framespacing="0">' + '<frame id="MDIPopupContainer" name="MDIPopupContainer"></frame>' + '<frame name="frameMenu" scrolling="no" src="' + OB.Application.contextUrl + 'utility/VerticalMenu.html?Command=HIDE" id="paramFrameMenuLoading"></frame>' + '</frameset><body></body></html>';
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js	Sat May 12 16:52:38 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js	Sun May 13 21:10:58 2012 +0200
@@ -22,6 +22,11 @@
 // are related to opening views, opening popups, displaying yes/no, etc. 
 OB.Utilities = {};
 
+OB.Utilities.isIE9Strict = false;
+if (navigator.userAgent.toUpperCase().indexOf("MSIE") !== -1 && (document.documentMode && document.documentMode >= 9)) {
+  OB.Utilities.isIE9Strict = true;
+}
+
 //** {{{OB.Utilities.checkProfessionalLicense}}} **
 // Checks if the current instance is using a professional license 
 // (!= community). If the instance has a community instance then