details:   /erp/devel/pi/rev/2c1d8a711c4b
changeset: 10695:2c1d8a711c4b
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Wed Feb 16 10:44:57 2011 +0100
summary:   In grid show buttons which display logic depends on session 
attributes

diffstat:

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

diffs (23 lines):

diff -r 31256b1d5e25 -r 2c1d8a711c4b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
    Wed Feb 16 09:59:48 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
    Wed Feb 16 10:44:57 2011 +0100
@@ -704,8 +704,8 @@
       numOfSelRecords = this.view.viewGrid.getSelectedRecords().length;
     }
 
-    if (this.buttonsHaveSessionLogic && !this.view.isShowingForm && 
!hideAllButtons && !isNew) {
-      var formView = this.view.viewForm;
+    if (this.view.buttonsHaveSessionLogic && !this.view.isShowingForm && 
!hideAllButtons && !isNew) {
+      var formView = this.view.viewForm, me = this;
       // Call FIC to obtain possible session attributes and set them in form
       requestParams = {
           MODE: 'EDIT',
@@ -730,7 +730,7 @@
            }
          }
          
-         doRefresh(buttons, currentValues, false, this);
+         doRefresh(buttons, currentValues, false, me);
         });
     } else {
       currentValues = this.view.getCurrentValues();

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to