details:   https://code.openbravo.com/erp/devel/pi/rev/2e1947ca8bbc
changeset: 15567:2e1947ca8bbc
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Feb 22 15:56:50 2012 +0100
summary:   Fixes issue 19830: Error message is shown after failed save

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r 6e76a2a1af99 -r 2e1947ca8bbc 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed Feb 22 14:38:41 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed Feb 22 15:56:50 2012 +0100
@@ -2021,9 +2021,7 @@
     // 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 (!this.view.standardWindow.isAutoSaveEnabled() && !enterKey && 
!autoSaveDone && newRow && (editForm.hasChanged || editForm.isNew)) {
+    if (this.view.standardWindow.isAutoSaveEnabled() && !autoSaveDone && 
newRow && (editForm.hasChanged || editForm.isNew)) {
       var actionObject = {
         target: this,
         method: this.cellEditEnd,

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to