[Tree Extension] Hide the message bar after a valid node movement
authorAugusto Mauch <augusto.mauch@openbravo.com>
Wed, 05 Mar 2014 10:20:50 +0100
changeset 22630 ace05d1bc4cc
parent 22629 8df8f64b0be8
child 22631 a652f7e46643
[Tree Extension] Hide the message bar after a valid node movement
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Wed Mar 05 09:37:24 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Wed Mar 05 10:20:50 2014 +0100
@@ -104,6 +104,8 @@
     ds.transformResponse = function (dsResponse, dsRequest, jsonData) {
       if (jsonData.response.message) {
         me.view.messageBar.setMessage(jsonData.response.message.messageType, null, jsonData.response.message.message);
+      } else if (dsRequest.operationType === 'update') {
+        me.view.messageBar.hide();
       }
       if (jsonData.response.error) {
         dsResponse.error = jsonData.response.error;