diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-11-24 16:00:34 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-11-24 16:00:34 +0100 |
| commit | 40889788d3bb6cfac6a0dab0bf2d48e59409fe5a (patch) | |
| tree | f9e845b5e345430bb8554f026fe0b9cc04fbd340 /addons/web_graph/static/src/js/graph.js | |
| parent | 5173a56db659f91eb71255bcecb0cfe072f54cdb (diff) | |
[REF] merge fold_row and fold_col methods into the fold method (addon web_graph)
bzr revid: ged@openerp.com-20131124150034-0133mgww0nm3dfta
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 037a07c60ec..5dbe4b780cb 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -199,7 +199,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ header = pivot['get_' + options.type](id); if (header.is_expanded) { - pivot['fold_' + options.type](header); + pivot.fold(header); this.draw_table(); } else { if (header.path.length < pivot[options.type + 's'].groupby.length) { @@ -327,9 +327,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ cell.append((value === undefined) ? '' : value); if ((self.heat_map_mode) && (value !== undefined)) { // heat map - console.log("heat map", self.heat_map_mode, pivot.total); var ratio = Math.floor(70 + 185*(pivot.total - value)/pivot.total); - console.log("ratio",ratio); cell.css("background-color", "rgb(255," + ratio + "," + ratio + ")"); } html_row.append(cell); |
