Skip to content

Commit

Permalink
[DE] Fix closing pdf-form with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Apr 17, 2024
1 parent 1790129 commit f924e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1949,12 +1949,12 @@ define([
me.hidePreloader();
me.onLongActionBegin(Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument);
}

}
if (this.appOptions.isEdit || this.appOptions.isRestrictedEdit && this.appOptions.isPDFForm) {
// Message on window close
window.onbeforeunload = _.bind(me.onBeforeUnload, me);
window.onunload = _.bind(me.onUnload, me);
}
if (!this.appOptions.isEdit)
} else
window.onbeforeunload = _.bind(me.onBeforeUnloadView, me);
},

Expand Down

0 comments on commit f924e47

Please sign in to comment.