summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-10-14 09:49:11 +0200
committerNicolas Martinelli <nim@odoo.com>2015-10-14 11:24:11 +0200
commitd1e6ba6d9ea15d4d6cb231c2629d1c993cc4cea9 (patch)
tree6f630550e13c0ef8db021e9c7018e6deb9cc77e5 /addons/web_editor/static/src/js
parent7730a8deae7c63b35c689f0a292b8b63a25938a3 (diff)
[FIX] web_editor: forcedReload of the page
On Firefox, the website page is not completely reloaded after saving or cancelling. Because of this behavior, the Edit button is kept disabled, forcing the user to completely refresh the page in order to activate the Edit button.
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/editor.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/editor.js b/addons/web_editor/static/src/js/editor.js
index 9b1a3da0acb..b365e82ca2e 100644
--- a/addons/web_editor/static/src/js/editor.js
+++ b/addons/web_editor/static/src/js/editor.js
@@ -44,7 +44,7 @@ editor.reload = function () {
if (location.search.indexOf("enable_editor") > -1) {
window.location.href = window.location.href.replace(/&?enable_editor(=[^&]*)?/g, '');
} else {
- window.location.reload();
+ window.location.reload(true);
}
};
@@ -160,4 +160,3 @@ editor.Class = Widget.extend({
return editor;
});
-