fixed bug 18122: When the filter returns selected record, toolbar buttons dissapear
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 29 Jul 2011 14:05:01 +0200
changeset 13350 540b30e15ffa
parent 13349 e6b8aac30d68
child 13351 ed0b8ba5a684
fixed bug 18122: When the filter returns selected record, toolbar buttons dissapear

Do not update button state when data arrives. This action should only be performed in
record selection/deselection which is already properly managed.
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	Fri Jul 29 13:03:23 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Fri Jul 29 14:05:01 2011 +0200
@@ -667,7 +667,6 @@
     
     var record, ret = this.Super('dataArrived', arguments);
     this.updateRowCountDisplay();
-    this.view.toolBar.updateButtonState(true);
     if (this.getSelectedRecords() && this.getSelectedRecords().length > 0) {
       this.selectionUpdated();
     }