Commit 6be321ea authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] change onlyoffice modified state on remotesettings change

parent 5ef74180
......@@ -178,7 +178,9 @@ DocsAPI.DocEditor.version = function () {
.jio_putAttachment('/', 'remote_settings.json', data);
})
.push(function () {
return gadget.notifyChange();
History.Create_NewPoint();
Asc.editor._onUpdateDocumentCanSave();
return gadget.changeState({changed: true});
})
.push(undefined, function (e) {
console.error(e);
......@@ -550,5 +552,11 @@ DocsAPI.DocEditor.version = function () {
DesktopOfflineAppDocumentEndSave(0);
return data;
});
})
.onStateChange(function (m_dict) {
var g = this;
if (m_dict.changed === true) {
return g.notifyChange();
}
});
}(rJS, RSVP, require, jIO));
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment