summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-12-26 13:34:49 +0100
committerGery Debongnie <ged@openerp.com>2013-12-26 13:34:49 +0100
commit5a2ddfdf8053f2166ddcbcd04299e5788f64b786 (patch)
treec51b9f703463be160a5d4f65b8a4b2b9f06168a5 /addons/web_graph/static/src
parentd145c7a8c4bd828d741fdd6fd9f3d8d0fee0fa84 (diff)
[FIX] forces an update when the user switches back to the graph view, to make sure the data displayed are up to date (graph view, addon web_graph)
bzr revid: ged@openerp.com-20131226123449-qjm7hvkhfsdvi7pw
Diffstat (limited to 'addons/web_graph/static/src')
-rw-r--r--addons/web_graph/static/src/js/graph.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 17a0721fd82..18432d9fa61 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -119,6 +119,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
if (!this.graph_widget.enabled) {
this.graph_widget.activate_display();
+ this.ViewManager.on('switch_mode', this, function () {this.graph_widget.pivot.update_data(); });
}
},