Fixes issue 26228: Includes missing change done in ob-smartclient.js
authorAugusto Mauch <augusto.mauch@openbravo.com>
Wed, 16 Apr 2014 12:18:32 +0200
changeset 22925 1e34d41332ca
parent 22924 d1aef7712d87
child 22926 8698d60bb9cf
Fixes issue 26228: Includes missing change done in ob-smartclient.js

Without the missing text the transformData of ob-tree.js was not being called, and the dates were not being shown properly in the tree grid view.

Also includes change done in ob-tree-grid to fix the js spacing.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js	Wed Apr 16 08:21:33 2014 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js	Wed Apr 16 12:18:32 2014 +0200
@@ -150,7 +150,7 @@
     return this.Super('applyCellTypeFormatters', [value, record, field, rowNum, colNum, isMultipleElement]);
   },
 
-  
+
   // converts the date and datetime fields from string to a js date
   transformData: function (data) {
     var dateFields = [],
--- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Wed Apr 16 08:21:33 2014 +0200
+++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Wed Apr 16 12:18:32 2014 +0200
@@ -111,6 +111,12 @@
     } else {
       return this._original_indexOf(node, a, b, c, d);
     }
+  },
+
+  dataArrived: function (parentNode) {
+    var children = this.getChildren(),
+        target = window[this.componentId];
+    target.transformData(children);
   }
 });