diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index bb282a3aa..be41b4d5b 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -2804,10 +2804,8 @@ define([ checkNewCheckpoint(); }); }; - var isModified = editor.asc_isDocumentModified || function () { - return editor.isDocumentModify; - }; - if (isModified()) { + var editing = editor.asc_isDocumentModified ? editor.asc_isDocumentModified() : editor.isDocumentModify; + if (editing) { setEditable(false); APP.unsavedLocks = myLocks; APP.onStrictSaveChanges = function () {