summaryrefslogtreecommitdiff
path: root/addons/web_view_editor/static/src
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-10-15 15:38:15 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-10-15 15:38:15 +0200
commited445ff91a15f18ee98cd8af202e7799d8480f6b (patch)
treeaf3fb6950f1886cc5199b78c24ca27b2a4b6ed6d /addons/web_view_editor/static/src
parenta99934dc7833e1297ab2c0abd1ee5facefcae89a (diff)
[REVERT] revert commit 3224 because it didn't reproduced the original behavior and some on_close were forgotten
bzr revid: nicolas.vanhoren@openerp.com-20121015133815-hmkz6h1bkhnbq7up
Diffstat (limited to 'addons/web_view_editor/static/src')
-rw-r--r--addons/web_view_editor/static/src/js/view_editor.js1
1 files changed, 1 insertions, 0 deletions
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 5e7c61ab17c..63dc864c916 100644
--- a/addons/web_view_editor/static/src/js/view_editor.js
+++ b/addons/web_view_editor/static/src/js/view_editor.js
@@ -67,6 +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.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);