details: https://code.openbravo.com/erp/devel/pi/rev/2e55c0d0da0d
changeset: 17840:2e55c0d0da0d
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Fri Aug 31 22:27:11 2012 +0200
summary: Fixed issue 21420: focus is set back in the form view after save
action
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
| 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 3d6050712a74 -r 2e55c0d0da0d
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
Fri Aug 31 16:38:36 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Fri Aug 31 22:27:11 2012 +0200
@@ -1387,6 +1387,7 @@
// function
saveRow: function () {
var savingNewRecord = this.isNew,
+ storedFocusItem = this.getFocusItem(),
i, length, flds, form = this,
ficCallDone, record, recordIndex, callback, viewsNotToRefresh;
@@ -1542,6 +1543,8 @@
form.isSaving = false;
view.toolBar.updateButtonState(true);
+ this.setFocusItem(storedFocusItem);
+ this.setFocusInForm();
return false;
};
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits