From de85a1cefb2d62aae5a4a29295dcf36b6c545ad6 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Tue, 14 Jan 2014 10:27:24 +0100 Subject: [REF] adds comments and reorganize the functions in PivotTable class (addon web_graph) bzr revid: ged@openerp.com-20140114092724-z534vyceksc4dnr2 --- addons/web_graph/static/src/js/graph.js | 4 +--- 1 file changed, 1 insertion(+), 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 f39f0574e9b..0259b4bcf73 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -340,9 +340,7 @@ instance.web_graph.Graph = instance.web.Widget.extend(openerp.EventDispatcherMix this.pivot.swap_axis(); break; case 'expand_all': - this.pivot.rows.headers = null; - this.pivot.cols.headers = null; - this.pivot.update_data(); + this.pivot.expand_all(); break; case 'update_values': this.pivot.update_data(); -- cgit v1.2.3