summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-11-24 15:29:27 +0100
committerGery Debongnie <ged@openerp.com>2013-11-24 15:29:27 +0100
commitaa5958eaf5bab2bc193eea7e1a1e76644967b9ce (patch)
treec36f260587c27dc42e73fc0fa9d3570e37b836f6 /addons/web_graph/static/src/js/graph.js
parent616af47ff7a8434b6adc0dcac4a17fd8cf977496 (diff)
[IMP] many very small tweaks to pivot view (addon web_graph)
bzr revid: ged@openerp.com-20131124142927-jnuqykwfp351337v
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js16
1 files changed, 13 insertions, 3 deletions
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 = $('<div><svg></svg></div>');
this.$el.filter('.graph_main_content').append(this.svg);
- Charts[mode](this.pivot_table);
+ draw_chart(this.svg, mode, this.pivot_table);
}
},