details:   /erp/devel/pi/rev/6d74d22c34a0
changeset: 12066:6d74d22c34a0
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Mon May 09 16:16:30 2011 +0200
summary:   fixed bug 17061: Completed status not updated in header

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
 |   2 +-
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
 |  13 ++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (49 lines):

diff -r db9fd3d70012 -r 6d74d22c34a0 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
      Mon May 09 14:55:49 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
      Mon May 09 16:16:30 2011 +0200
@@ -93,7 +93,7 @@
     var contextView = OB.ActionButton.executingProcess.contextView,
         currentView = this.view;
     
-    currentView.refresh(function(){
+    currentView.refreshCurrentRecord(function(){
         // Refresh current view, taking the message set in the process' 
context view
         currentView.getTabMessage(contextView.tabId);
         currentView.toolBar.refreshCustomButtons();
diff -r db9fd3d70012 -r 6d74d22c34a0 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Mon May 09 14:55:49 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Mon May 09 16:16:30 2011 +0200
@@ -1279,13 +1279,13 @@
     }
   },
   
-  refreshParentRecord: function() {
+  refreshParentRecord: function(callBackFunction) {
     if (this.parentView) {
-      this.parentView.refreshCurrentRecord();
+      this.parentView.refreshCurrentRecord(callBackFunction);
     }
   },
   
-  refreshCurrentRecord: function() {
+  refreshCurrentRecord: function(callBackFunction) {
     if (!this.viewGrid.getSelectedRecord()) {
       return;
     }
@@ -1320,10 +1320,15 @@
         me.viewGrid.refreshRow(recordIndex);
         me.viewGrid.redraw();
       }
+      
+      
+      if (callBackFunction) {
+        callBackFunction();
+      }
     };
     
     this.getDataSource().fetchData(criteria, callback);
-    this.refreshParentRecord();
+    this.refreshParentRecord(callBackFunction);
   },
   
   saveRow: function(){

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to