details: https://code.openbravo.com/erp/devel/pi/rev/c087bb4d81c2
changeset: 13362:c087bb4d81c2
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Aug 01 15:51:20 2011 +0200
summary: Fixes issue 18149: Field shows error when form is shown
This was caused by a blur done when initializing the form, prevented the blur
when initializing
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
| 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 2430d7a85bb1 -r c087bb4d81c2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Mon Aug 01 15:33:44 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Mon Aug 01 15:51:20 2011 +0200
@@ -176,6 +176,8 @@
},
doEditRecordActions: function(preventFocus, isNew){
+ this.initializing = true;
+
delete this.validateAfterFicReturn;
// only compute a new focus item if the form is active
@@ -534,6 +536,7 @@
// remember the initial values, if we are still editing the same row
me.rememberValues();
}
+ me.initializing = false;
});
},
@@ -715,7 +718,7 @@
if (this.getFocusItem()) {
if (this.allItemsDisabled) {
this.storeFocusItem();
- if (this.getFocusItem()) {
+ if (this.getFocusItem() && !this.initializing) {
this.getFocusItem().blurItem();
}
this.setHandleDisabled(state);
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits