From aa5958eaf5bab2bc193eea7e1a1e76644967b9ce Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Sun, 24 Nov 2013 15:29:27 +0100 Subject: [IMP] many very small tweaks to pivot view (addon web_graph) bzr revid: ged@openerp.com-20131124142927-jnuqykwfp351337v --- addons/web_graph/static/src/js/graph.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'addons/web_graph/static/src/js/graph.js') diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index cd6cb44f93c..c0ccb80285a 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -63,8 +63,18 @@ instance.web_graph.GraphView = instance.web.View.extend({ this.draw_table(); }, - 'click label.graph_clear_all' : function (event) { - this.pivot_table.clear_all(); + 'click label.graph_fold_all' : function (event) { + this.pivot_table.fold_all(); + this.draw_table(); + }, + + 'click label.graph_fold_rows' : function (event) { + this.pivot_table.fold_rows(); + this.draw_table(); + }, + + 'click label.graph_fold_cols' : function (event) { + this.pivot_table.fold_cols(); this.draw_table(); }, }, @@ -172,7 +182,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ this.svg.remove(); this.svg = $('
'); this.$el.filter('.graph_main_content').append(this.svg); - Charts[mode](this.pivot_table); + draw_chart(this.svg, mode, this.pivot_table); } }, -- cgit v1.2.3