[FIX] web_editor: should not ask if want to leave the page twice

This commit is contained in:
Gorash
2020-10-15 11:27:37 +00:00
parent 145e3ad0c7
commit 1b06c97210
@@ -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 => {