details: /erp/devel/pi/rev/44e3587f19ba
changeset: 11563:44e3587f19ba
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Apr 11 14:37:34 2011 +0200
summary: Fixes issue16745: Ingrid editing: arrow down from a changed edit
cell does not open next row in edit mode
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
| 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 36b4b33577a0 -r 44e3587f19ba
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Apr 11 12:49:30 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Apr 11 14:37:34 2011 +0200
@@ -1474,13 +1474,13 @@
// see description in saveEditvalues
cellEditEnd: function (editCompletionEvent, newValue, ficCallDone,
autoSaveDone) {
var rowNum = this.getEditRow(), colNum = this.getEditCol();
- var editForm = this.getEditForm(), focusItem = editForm.getFocusItem();
+ var editForm = this.getEditForm(), focusItem = (editForm ?
editForm.getFocusItem() : null);
// sometimes rowNum and colnum are not set, then don't compute the next
cell
var nextEditCell = ((rowNum || rowNum === 0) && (colNum || colNum === 0) ?
this.getNextEditCell(rowNum, colNum, editCompletionEvent) : null);
var newRow = nextEditCell && nextEditCell[0] !== rowNum;
// the enter key saves anyway, so no autosave needed
var enterKey = editCompletionEvent === 'enter';
- if (!enterKey && !autoSaveDone && newRow && (this.getEditForm().hasChanged
|| this.getEditForm().isNew)) {
+ if (!this.view.standardWindow.isAutoSaveEnabled() && !enterKey &&
!autoSaveDone && newRow && (editForm.hasChanged || editForm.isNew)) {
var actionObject = {
target: this,
method: this.cellEditEnd,
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits