From 376530539c10998498723dd77fd830545daa60ad Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 8 May 2012 01:08:26 +0200 Subject: [PATCH] [IMP] fix bzr revid: fp@openerp.com-20120507230826-7tsxcleqv3zog8yh --- addons/web_graph/static/src/js/graph.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index d994a84c1c7..4e918d60657 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -227,7 +227,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ ) }, - graph_get_data: function (options, callback) { + graph_get_data: function (callback) { var data = this.rpc( '/web_graph/graph/data_get', { @@ -247,22 +247,19 @@ instance.web_graph.GraphView = instance.web.View.extend({ // Render the graph and update menu styles graph_render: function (options) { - var mode_options, i; + var i; var self = this; - mode_options = (this.mode=='area')?{lines: {fill: true}}:{} if (options) for (i in options.data) this[i] = options.data[i]; - return this.graph_get_data(mode_options, + return this.graph_get_data( function (result) { - // TODO: apply mode_options on all result.data var i; if (self.mode=='area') for (i=0; i