diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-12-13 15:09:14 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-12-13 15:09:14 +0100 |
| commit | 906ceba9488fafa9e7999526c90e7e6c61e69180 (patch) | |
| tree | b23ff7e6a6fd5741506f7363f0805896fefc4e1c /addons/web/static/src/js/view_tree.js | |
| parent | 5bc1a170266de6993204dd294fd4ac7dfe314d37 (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.js | 5 |
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); }, /** |
