Skip to content

Commit

Permalink
Merge pull request #2942 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
[DE] Fix closing pdf-form with changes
  • Loading branch information
JuliaRadzhabova authored Apr 17, 2024
2 parents 1790129 + f924e47 commit f593d78
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 f593d78

Please sign in to comment.