Fixes issue 18434: Date field is not working fine: Expense sheet window
authorMartin Taal <martin.taal@openbravo.com>
Mon, 05 Sep 2011 19:33:03 +0200
changeset 13662 b92b2fa9d8ea
parent 13661 d37bfbb58bc8
child 13663 4c5cd48e2467
Fixes issue 18434: Date field is not working fine: Expense sheet window
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js	Mon Sep 05 19:31:38 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js	Mon Sep 05 19:33:03 2011 +0200
@@ -190,7 +190,7 @@
     buttonType: 'undo',
     prompt: OB.I18N.getLabel('OBUIAPP_CancelEdit'),
     updateState: function() {
-       this.setDisabled(!this.view.viewGrid.hasErrors() && !this.view.viewForm.hasChanged && !this.view.viewGrid.hasChanges());
+       this.setDisabled(!this.view.viewGrid.hasErrors() && !this.view.viewForm.hasChanged && !this.view.viewGrid.hasChanges(false));
     },
     keyboardShortcutId: 'ToolBar_Undo'
   },