[FIX] Fixed on_loaded in ViewEditor.

bzr revid: vta@openerp.com-20121018121947-xx2334wkt2tr6qcq
This commit is contained in:
vta vta@openerp.com 2012-10-18 14:19:47 +02:00
parent 70f41ea726
commit 1ccd8db987
1 changed files with 1 additions and 1 deletions

View File

@ -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];