summaryrefslogtreecommitdiff
path: root/addons/base/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-06-20 16:39:46 +0200
committerXavier Morel <xmo@openerp.com>2011-06-20 16:39:46 +0200
commitec186dfb7d394a337744a70aab3b042feeddbbf8 (patch)
tree0703410398ab65fb950b2ad577f9bb83f7354b2b /addons/base/static/src
parent2397a86d19ad4517b9cb70c2ab07f6348dfc2577 (diff)
[FIX] race condition between graph view loading and search request: View.start() should return a promise if it makes an async call, so caller (ViewManager in this case) knows when the graph view is ready for action
Also inherit from View bzr revid: xmo@openerp.com-20110620143946-tv0qx84e0y06zxu7
Diffstat (limited to 'addons/base/static/src')
-rw-r--r--addons/base/static/src/js/views.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base/static/src/js/views.js b/addons/base/static/src/js/views.js
index 04fb1b540ce..6a4720091b9 100644
--- a/addons/base/static/src/js/views.js
+++ b/addons/base/static/src/js/views.js
@@ -117,8 +117,8 @@ openerp.base.ViewManager = openerp.base.Controller.extend({
var view = this.views[view_type];
if (!view.controller) {
// Lazy loading of views
- var controllerclass = openerp.base.views.get_object(view_type);
- var controller = new controllerclass( this, this.session, this.element_id + "_view_" + view_type, this.dataset, view.view_id);
+ var ControllerClass = openerp.base.views.get_object(view_type);
+ var controller = new ControllerClass( this, this.session, this.element_id + "_view_" + view_type, this.dataset, view.view_id);
if (view.embedded_view) {
controller.set_embedded_view(view.embedded_view);
}