details:   https://code.openbravo.com/erp/devel/pi/rev/1e34d41332ca
changeset: 22881:1e34d41332ca
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Apr 16 12:18:32 2014 +0200
summary:   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.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
            |  2 +-
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
 |  6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r d1aef7712d87 -r 1e34d41332ca 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.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 = [],
diff -r d1aef7712d87 -r 1e34d41332ca 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- 
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);
   }
 });
 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to