From d1e6ba6d9ea15d4d6cb231c2629d1c993cc4cea9 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 14 Oct 2015 09:49:11 +0200 Subject: [PATCH] [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. --- addons/web_editor/static/src/js/editor.js | 3 +-- 1 file changed, 1 insertion(+), 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; }); -