details:   /erp/devel/pi/rev/67b4bfacea4c
changeset: 10904:67b4bfacea4c
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Feb 28 11:35:37 2011 +0100
summary:   Only give discard edits warning if something changed, in new mode

diffstat:

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

diffs (12 lines):

diff -r b98f5e7b8c8c -r 67b4bfacea4c 
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 Feb 28 11:33:40 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
  Mon Feb 28 11:35:37 2011 +0100
@@ -1174,7 +1174,7 @@
     var me = this, record = this.getRecord(rowNum);
     
     if (!preventConfirm && 
-    (record._new || this.getEditForm().hasChanged || 
this.rowHasErrors(rowNum))) {
+    (this.getEditForm().hasChanged || this.rowHasErrors(rowNum))) {
       isc.ask(OB.I18N.getLabel('OBUIAPP_ConfirmCancelEdit'), function(value){
         if (value) {
         

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to