details:   https://code.openbravo.com/erp/devel/pi/rev/644aee6a8041
changeset: 24277:644aee6a8041
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue Aug 19 15:10:36 2014 +0200
summary:   Fixes issue 27377: Toolbar buttons are not updated after loading the 
grid data

Now the toolbar buttons are updated each time the grid loads data.

diffstat:

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

diffs (13 lines):

diff -r c1f6e19bd4bf -r 644aee6a8041 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Aug 19 14:53:59 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Aug 19 15:10:36 2014 +0200
@@ -1704,7 +1704,8 @@
     if (this.data.manualResultSet && !this.data.useClientFiltering) {
       this.data.useClientFiltering = true;
     }
-
+    //  update the state of the toolbar buttons, as the availability of some 
of them depends on the number of records loaded
+    this.view.toolBar.updateButtonState(true);
     return ret;
   },
 

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to