From 1ccd8db9878b6280619188442478341ba4ef4146 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Thu, 18 Oct 2012 14:19:47 +0200 Subject: [PATCH] [FIX] Fixed on_loaded in ViewEditor. bzr revid: vta@openerp.com-20121018121947-xx2334wkt2tr6qcq --- addons/web_view_editor/static/src/js/view_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_view_editor/static/src/js/view_editor.js b/addons/web_view_editor/static/src/js/view_editor.js index 2732954097d..0750a5fe0b8 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -74,7 +74,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ $.when(this.action_manager.do_action(action)).then(function() { var viewmanager = self.action_manager.inner_widget; var controller = viewmanager.views[viewmanager.active_view].controller; - controller.on_loaded.add_last(function(){ + controller.on('view_loaded', function(){ $(controller.groups).bind({ 'selected': function(e, ids, records) { self.main_view_id = ids[0];