[IMP]replace callenabled for on_close

bzr revid: vja@tinyerp.com-20121008133123-wg9gz98d0msrsnvn
This commit is contained in:
Vishmita 2012-10-08 19:01:23 +05:30
parent 2b19de7169
commit 3e15613cf7
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
{text: _t("Close"), click: function() { self.view_edit_dialog.close(); window.location.reload(); }}
]
}).open();
this.view_edit_dialog.on_close.add_last(function(){window.location.reload();});
this.view_edit_dialog.on('on_close',self,function(){window.location.reload();});
this.main_view_id = this.parent.fields_view.view_id;
this.action_manager = new instance.web.ActionManager(this);
this.action_manager.appendTo(this.view_edit_dialog.$el);