details:   /erp/devel/pi/rev/fc311fed3dd7
changeset: 11455:fc311fed3dd7
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Apr 04 14:25:14 2011 +0200
summary:   Fixes issue 16454: When you maximize a form the autosave is 
triggered and it shouldn't

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-statusbar.js
 |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 5f32bb22bf38 -r fc311fed3dd7 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-statusbar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-statusbar.js
  Mon Apr 04 14:18:38 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-statusbar.js
  Mon Apr 04 14:25:14 2011 +0200
@@ -51,6 +51,13 @@
     if (this.buttonType === 'close' && !this.view.viewForm.hasChanged && 
this.view.viewForm.isNew) {
       this.view.standardWindow.setDirtyEditForm(null);
     }
+    
+    // or when maximizing/minimizing
+    if (this.buttonType === 'maximize' || this.buttonType === 'restore') {
+      this.doAction();
+      return;
+    }
+
     var actionObject = {
       target : this,
       method : this.doAction,

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to