details:   https://code.openbravo.com/erp/devel/pi/rev/07560f9523e0
changeset: 19177:07560f9523e0
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Wed Jan 09 14:49:50 2013 +0530
summary:   Related to issue 22625 : Backout Changeset faf2790df3d2

Backed out changeset as it the changeset gets called at various other instances 
like switching over tabs.

details:   https://code.openbravo.com/erp/devel/pi/rev/005e47a80a31
changeset: 19178:005e47a80a31
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Wed Jan 09 14:50:48 2013 +0530
summary:   Related to issue 22625 : Backout Changeset 3a21b4406814

Backed out changeset as it the changeset gets called at various other instances
like switching over tabs.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
  |  3 ---
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
 |  4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r a9ae9ad20ff1 -r 005e47a80a31 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Wed Jan 09 05:40:43 2013 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Wed Jan 09 14:50:48 2013 +0530
@@ -742,9 +742,6 @@
     if (!action) {
       return;
     }
-    if (this.view && this.view.viewForm && this.view.viewForm.isNewRecord()) {
-      this.view.saveRow();
-    }
     OB.Utilities.callAction(action);
   },
 
diff -r a9ae9ad20ff1 -r 005e47a80a31 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
      Wed Jan 09 05:40:43 2013 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
      Wed Jan 09 14:50:48 2013 +0530
@@ -60,9 +60,9 @@
         me = this,
         standardWindow = this.view.standardWindow,
         autosaveButton = this.autosave,
-        param, allProperties, sessionProperties, callbackFunction, 
popupParams, undef;
+        param, allProperties, sessionProperties, callbackFunction, popupParams;
     //Modified check from 'rowNum to 'rowNum ! = null' to handle case where 
rowNum is 0.
-    if (rowNum !== undef && isc.isA.Number(rowNum) && 
!theView.viewGrid.getSelectedRecord()) {
+    if (rowNum !== null && !theView.viewGrid.getSelectedRecord()) {
       // Current selection was lost, restore it
       theView.viewGrid.selectRecord(rowNum);
     }

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to