[Fix]change event name

bzr revid: vja@tinyerp.com-20121011105516-h3fuwrgxdqqbtxh8
This commit is contained in:
Vishmita 2012-10-11 16:25:16 +05:30
parent ffe8dd604a
commit e50ce70fa7
2 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ instance.web.Dialog = instance.web.Widget.extend({
this.$el.dialog('close');
},
on_close: function() {
this.trigger("dialog_close");
if (this.__tmp_dialog_destroying)
return;
if (this.dialog_options.destroy_on_close) {

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('on_close',self,function(){window.location.reload();});
this.view_edit_dialog.on("dialog_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);