[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.
This commit is contained in:
Nicolas Martinelli
2015-10-14 11:24:11 +02:00
parent 7730a8deae
commit d1e6ba6d9e
+1 -2
View File
@@ -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;
});