[statusbar][style] Set disabled maximize button if no childs
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 03 Feb 2011 16:38:25 +0100
changeset 10361 cafda4172fca
parent 10360 2e6e4c3dbc17
child 10362 23d7da2da267
[statusbar][style] Set disabled maximize button if no childs
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js	Thu Feb 03 16:37:32 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js	Thu Feb 03 16:38:25 2011 +0100
@@ -425,9 +425,9 @@
       });
       this.addMember(this.childTabSet);
     } else if (this.isRootView) {
-      // hide the maximize button if this is the root without
+      // disable the maximize button if this is the root without
       // children
-      this.statusBar.maximizeButton.hide();
+      this.statusBar.maximizeButton.disable();
     }
   },