[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:
@@ -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;
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user