mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
Merge pull request #2942 from ONLYOFFICE/fix/bugfix
[DE] Fix closing pdf-form with changes
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user