summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_tree.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/static/src/js/view_tree.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/static/src/js/view_tree.js')
-rw-r--r--addons/web/static/src/js/view_tree.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_tree.js b/addons/web/static/src/js/view_tree.js
index acac93f1842..2f9efad9171 100644
--- a/addons/web/static/src/js/view_tree.js
+++ b/addons/web/static/src/js/view_tree.js
@@ -37,7 +37,10 @@ instance.web.TreeView = instance.web.View.extend(/** @lends instance.web.TreeVie
this.options = _.extend({}, this.defaults, options || {});
_.bindAll(this, 'color_for');
- this.on('view_loaded', this, this.load_tree);
+ },
+
+ view_loading: function(r) {
+ return this.load_tree(r);
},
/**