details:   /erp/devel/pi/rev/b645d3ca3d0c
changeset: 10762:b645d3ca3d0c
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Feb 18 07:47:27 2011 +0100
summary:   After editing in grid updateButtonState after selecting current 
record
if it is not done in this way, buttons disappear because they're refreshed
without record selection

diffstat:

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

diffs (21 lines):

diff -r 3d93bed5925b -r b645d3ca3d0c 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
  Thu Feb 17 23:41:19 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
  Fri Feb 18 07:47:27 2011 +0100
@@ -1119,8 +1119,6 @@
     // remove any new pointer
     delete record._new;
     
-    this.view.toolBar.updateButtonState();
-    
     // remove the error style/message
     this.setRecordErrorMessage(rowNum, null);
     
@@ -1137,6 +1135,8 @@
     } else if (this.getSelectedRecord() === record) {
       this.view.refreshChildViews();
     }
+    
+    this.view.toolBar.updateButtonState();
     this.view.messageBar.hide();
     this.view.refreshParentRecord();
   },

------------------------------------------------------------------------------
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