[FIX] web_editor: should not ask if want to leave the page twice
This commit is contained in:
@@ -727,8 +727,8 @@ var Wysiwyg = Widget.extend({
|
||||
return this._saveWebsiteContent(context)
|
||||
.then(() => {
|
||||
this.trigger_up('edition_was_stopped');
|
||||
window.onbeforeunload = null;
|
||||
if (reload) {
|
||||
window.onbeforeunload = null;
|
||||
window.location.reload();
|
||||
}
|
||||
}).catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user