details:   https://code.openbravo.com/erp/devel/pi/rev/848ac1c96c9b
changeset: 15573:848ac1c96c9b
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Feb 22 21:16:50 2012 +0100
summary:   Fixes issue 19846: In formlayout: section header shows disabled 
buttons and text area fields are not visible
Set showdisabled to false for section item header and prevent disabled style 
for text area if !showDisabled

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-textarea.js
                                          |  2 +-
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
 |  1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d6522f4e28ae -r 848ac1c96c9b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-textarea.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-textarea.js
    Wed Feb 22 19:12:30 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-textarea.js
    Wed Feb 22 21:16:50 2012 +0100
@@ -30,7 +30,7 @@
 
   isDisabled: function () {
     var ret = this.Super('isDisabled', arguments);
-    if (ret) {
+    if (ret && this.showDisabled) {
       this.readOnly = true;
       if (this.cellStyle.indexOf('Disabled') === -1 || 
(this.cellStyle.indexOf('Disabled') !== -1 && 
this.cellStyle.lastIndexOf('Disabled') !== this.cellStyle.length - 8)) {
         this.cellStyle = this.cellStyle + 'Disabled';
diff -r d6522f4e28ae -r 848ac1c96c9b 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
   Wed Feb 22 19:12:30 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
   Wed Feb 22 21:16:50 2012 +0100
@@ -499,6 +499,7 @@
 isc.OBSectionItemButton.changeDefaults('backgroundDefaults', {
   showRollOver: true,
   showDown: false,
+  showDisabled: false,
   showDisabledIcon: false,
   showRollOverIcon: false,
   src: OB.Styles.skinsPath + 
'Default/org.openbravo.client.application/images/form/sectionItem-bg.png',

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to