Fixes issue 22882: Windows with status bar fields are rendered in IE9
authorAugusto Mauch <augusto.mauch@openbravo.com>
Fri, 25 Jan 2013 01:09:49 +0100
changeset 19469 5081e82e5184
parent 19468 d1a882b501ab
child 19470 7971c7a9d186
Fixes issue 22882: Windows with status bar fields are rendered in IE9

The way the showIf property is reset has been changed from '' to null, because resetting it with '' was failing in IE9 and IE10, and the window was not rendered at all.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Thu Jan 24 12:09:48 2013 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Fri Jan 25 01:09:49 2013 +0100
@@ -2233,7 +2233,7 @@
         return !(this.hiddenInForm && !this.statusBarField) && context && originalShowIfValue;
       };
       if (fld.statusBarField) {
-        fld.showIf = '';
+        fld.showIf = null;
         fld.statusBarShowIf = newShowIf;
       } else {
         fld.showIf = newShowIf;