fixes issue 21483: Calendars do not dissappear in reports
authorCarlos Aristu <carlos.aristu@openbravo.com>
Wed, 29 Aug 2012 12:49:23 +0200
changeset 9892 e77200cbed9c
parent 9891 dc596eb83c92
child 9893 0a548ca8374d
fixes issue 21483: Calendars do not dissappear in reports
src/org/openbravo/erpCommon/security/Login.html
src/org/openbravo/erpCommon/security/Login_F1.html
web/js/utils.js
--- a/src/org/openbravo/erpCommon/security/Login.html	Mon Aug 27 09:31:15 2012 +0000
+++ b/src/org/openbravo/erpCommon/security/Login.html	Wed Aug 29 12:49:23 2012 +0200
@@ -252,7 +252,7 @@
     }
     catch (e) { }
 
-    if ((!revisionControl('9578')) || (isOpsInstance() != isOpsInstanceCached())) {
+    if ((!revisionControl('9892')) || (isOpsInstance() != isOpsInstanceCached())) {
       maskLoginWindow(cacheMsg);
       setLoginMessage('Warning', '', cacheMsg);
     }
--- a/src/org/openbravo/erpCommon/security/Login_F1.html	Mon Aug 27 09:31:15 2012 +0000
+++ b/src/org/openbravo/erpCommon/security/Login_F1.html	Wed Aug 29 12:49:23 2012 +0200
@@ -126,7 +126,7 @@
       clearForm();
     } catch (e) {}
     setWindowElementFocus('firstElement');
-    if ((!revisionControl('9578')) || (isOpsInstance() != isOpsInstanceCached())) {
+    if ((!revisionControl('9892')) || (isOpsInstance() != isOpsInstanceCached())) {
       alert(cacheMsg);
     }
 
--- a/web/js/utils.js	Mon Aug 27 09:31:15 2012 +0000
+++ b/web/js/utils.js	Wed Aug 29 12:49:23 2012 +0200
@@ -95,7 +95,7 @@
 * Return a number that would be checked at the Login screen to know if the file is cached with the correct version
 */
 function getCurrentRevision() {
-  var number = '9578';
+  var number = '9892';
   return number;
 }
 
@@ -4112,7 +4112,9 @@
 */
 // .
 function closeHandler(cal) {
-  if (typeof (cal.sel.onchange)!="undefined") cal.sel.onchange();
+  if (typeof (cal.sel.onchange) != "undefined" && cal.sel.onchange != null) {
+    cal.sel.onchange();
+  }
   cal.sel.focus();
   cal.hide();                        // hide the calendar
 //  cal.destroy();