From 46bf047e86c2a5dd93aae3b6ac77873aa6180a1e Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 16 Jun 2015 11:38:20 +0200 Subject: [IMP] web, web_*, mail, board : New modals and dialogs --- addons/web_view_editor/static/src/js/view_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web_view_editor/static/src') 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 16013e1b031..d45216ed19a 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -72,10 +72,10 @@ var ViewEditor = Widget.extend({ {text: _t("Create"), click: function() { self.on_create_view(); }}, {text: _t("Edit"), click: function() { self.xml_element_id = 0; self.get_arch(); }}, {text: _t("Remove"), click: function() { self.do_delete_view(); }}, - {text: _t("Close"), click: function() { self.view_edit_dialog.close(); window.location.reload(); }} + {text: _t("Close"), click: function() { window.location.reload(); }, close: true} ] }).open(); - this.view_edit_dialog.on("closing", this, function(){window.location.reload();}); + this.view_edit_dialog.on("closed", this, function(){window.location.reload();}); this.main_view_id = this.parent.fields_view.view_id; this.action_manager = new ActionManager(this); this.action_manager.appendTo(this.view_edit_dialog.$el); -- cgit v1.2.3