diff options
| author | Gery Debongnie <ged@openerp.com> | 2014-05-08 13:27:23 +0200 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2014-05-08 13:27:23 +0200 |
| commit | 1c87d5b6f4edc58f6990f65fb78e88772d72f538 (patch) | |
| tree | 724c6bdd1159e0303260778718f27b2d6404f706 /addons/web_graph/static/src/js/graph_widget.js | |
| parent | b9c217e8500e27babaf3ddc6745e37724eff9932 (diff) | |
[FIX] render the pivot table correctly (addon web_graph)
The code was bugged: it added a <tbody> tag around each rows instead of adding the rows to a single tbody.
bzr revid: ged@openerp.com-20140508112723-b6ffkmufwux1z0a7
Diffstat (limited to 'addons/web_graph/static/src/js/graph_widget.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_widget.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index 64f043014d7..fb738d5d593 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -591,8 +591,13 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ rows_length, cells_length; rows_length = rows.length; + + var $tbody = $('<tbody>'); + doc_fragment.append($tbody); for (i = 0; i < rows_length; i++) { - $row = $('<tr>').append(make_cell(rows[i])); + $row = $('<tr>') + .attr('data-indent', rows[i].indent) + .append(make_cell(rows[i])); cells_length = rows[i].cells.length; cells_list = []; @@ -609,7 +614,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ cells_list[j] = hcell; } $row.append(cells_list.join('')); - doc_fragment.append($('<tbody>').append($row)); + $tbody.append($row); } }, |
