summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-12-13 15:09:14 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-12-13 15:09:14 +0100
commit906ceba9488fafa9e7999526c90e7e6c61e69180 (patch)
treeb23ff7e6a6fd5741506f7363f0805896fefc4e1c /addons/web_graph/static/src/js/graph.js
parent5bc1a170266de6993204dd294fd4ac7dfe314d37 (diff)
[IMP] lot of small improvements to better detect when a view has finished loading
bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 282822d6cba..35ad0aaaea8 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -42,7 +42,9 @@ instance.web_graph.GraphView = instance.web.View.extend({
this.group_by = [];
this.graph = null;
- this.on('view_loaded', self, self.load_graph);
+ },
+ view_loading: function(r) {
+ return this.load_graph(r);
},
destroy: function () {
if (this.graph) {