details:   https://code.openbravo.com/erp/devel/pi/rev/627fabbba30b
changeset: 14965:627fabbba30b
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Wed Dec 28 17:33:11 2011 +0100
summary:   Fixed issue 19378: Hidden sections now doesn't take space

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-section.js
 |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r b818875ced2a -r 627fabbba30b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-section.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-section.js
     Wed Dec 28 13:40:21 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-section.js
     Wed Dec 28 17:33:11 2011 +0100
@@ -99,11 +99,8 @@
   showIf: function(item, value, form, values) {
     var i, field, length;
     
-    if(!this.itemIds) {
-      return false;
-    }
-
-    if (item.hiddenInForm === true || item.displayed === false ) {
+    if (!this.itemIds || item.hiddenInForm === true || item.displayed === 
false ) {
+      this.updateAlwaysTakeSpace(false); // To avoid an empty space if the 
section is not shown
       return false;
     }
     
@@ -125,6 +122,7 @@
       }
     }
     
+    this.updateAlwaysTakeSpace(false); // To avoid an empty space if the 
section is not shown
     return false;
   }
 });

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to