details: https://code.openbravo.com/erp/devel/pi/rev/de65f6acc7f0
changeset: 20730:de65f6acc7f0
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Mon Jul 15 14:12:21 2013 +0200
summary: Fixed issue 23853: Now 'Backspace' triggers form change in
OBRichTextItem
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
| 11 ++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r fd17b88f8379 -r de65f6acc7f0
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
Mon Jul 15 12:21:34 2013 +0530
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
Mon Jul 15 14:12:21 2013 +0200
@@ -36,6 +36,17 @@
controlGroups: ["fontControls", "styleControls", "formatControls"],
keyDown: function (event, eventInfo) {
+ var me = this;
+ if (this.parentElement && typeof this.parentElement.handleItemChange ===
'function' && (isc.EH.getKey() === 'Backspace' || isc.EH.getKey() === 'Delete')
&& !isc.EH.altKeyDown()) {
+ var oldValue = this.getValue();
+ setTimeout(function () {
+ var newValue = me.getValue();
+ if (oldValue !== newValue) {
+ me._hasChanged = true;
+ me.parentElement.handleItemChange(me);
+ }
+ }, 100);
+ }
var response = OB.KeyboardManager.Shortcuts.monitor('OBViewForm');
if (response !== false) {
response = this.Super('keyDown', arguments);
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits