summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/editor/editor_menu.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2019-02-18 14:00:19 +0000
committerChristophe Matthieu <chm@odoo.com>2019-02-19 08:43:51 +0000
commite3ad11d97244b8fb8a2ad244066b6219fe2b9b85 (patch)
tree4444775eb385556ea165808bc450d5a2b74b1f0a /addons/website/static/src/js/editor/editor_menu.js
parent832357f0b72d39519bfcf37a6fa0317081947e6b (diff)
[FIX] website: remove 'enable_editor' from the URL before edition
Diffstat (limited to 'addons/website/static/src/js/editor/editor_menu.js')
-rw-r--r--addons/website/static/src/js/editor/editor_menu.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/addons/website/static/src/js/editor/editor_menu.js b/addons/website/static/src/js/editor/editor_menu.js
index 0e967b2f679..cd48937b89e 100644
--- a/addons/website/static/src/js/editor/editor_menu.js
+++ b/addons/website/static/src/js/editor/editor_menu.js
@@ -26,8 +26,6 @@ var EditorMenu = Widget.extend({
request_save: '_onSnippetRequestSave',
},
- LOCATION_SEARCH: 'enable_editor',
-
/**
* @override
*/
@@ -180,12 +178,7 @@ var EditorMenu = Widget.extend({
$('body').addClass('o_wait_reload');
this.wysiwyg.destroy();
window.location.hash = 'scrollTop=' + window.document.body.scrollTop;
- if (window.location.search.indexOf(this.LOCATION_SEARCH) >= 0) {
- var regExp = new RegExp('[&?]' + this.LOCATION_SEARCH + '(=[^&]*)?', 'g');
- window.location.href = window.location.href.replace(regExp, '?');
- } else {
- window.location.reload(true);
- }
+ window.location.reload(true);
return $.Deferred();
},