details: https://code.openbravo.com/erp/devel/pi/rev/efc02cb4e645
changeset: 22904:efc02cb4e645
user: Guillermo Gil <guillermo.gil <at> openbravo.com>
date: Wed Apr 23 15:04:32 2014 +0200
summary: Fixed issue 26014:Disabled rich text fields are displaying the edit
toolbar
Added setDisabled function on initWidget and hide the toolArea instead the
toolbar.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
| 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 84c38ca5cfb1 -r efc02cb4e645
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
Wed Apr 23 14:26:47 2014 +0530
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
Wed Apr 23 15:04:32 2014 +0200
@@ -67,12 +67,12 @@
this.previousStyleName = this.styleName;
this.setStyleName(this.editorStyleName + 'Disabled');
this.editArea.setStyleName(this.editAreaStyleName + 'Disabled');
- this.toolbar.hide();
+ this.toolArea.hide();
} else {
this.setStyleName(this.previousStyleName || this.editorStyleName);
delete this.previousStyleName;
this.editArea.setStyleName(this.editAreaStyleName);
- this.toolbar.show();
+ this.toolArea.show();
}
this.Super('setDisabled', arguments);
},
@@ -158,6 +158,9 @@
this.strikethroughSelectionDefaults.prompt =
OB.I18N.getLabel('OBUIAPP_StrikeThroughSelection');
this.Super('initWidget', arguments);
+
+ // Added setDisabled on init to remove the toolArea
+ this.setDisabled(this.disabled);
}
});
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits