Commit dd401b8e authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] change onlyoffice modified state on remotesettings change

parent a0858620
...@@ -178,7 +178,9 @@ DocsAPI.DocEditor.version = function () { ...@@ -178,7 +178,9 @@ DocsAPI.DocEditor.version = function () {
.jio_putAttachment('/', 'remote_settings.json', data); .jio_putAttachment('/', 'remote_settings.json', data);
}) })
.push(function () { .push(function () {
return gadget.notifyChange(); History.Create_NewPoint();
Asc.editor._onUpdateDocumentCanSave();
return gadget.changeState({changed: true});
}) })
.push(undefined, function (e) { .push(undefined, function (e) {
console.error(e); console.error(e);
...@@ -550,5 +552,11 @@ DocsAPI.DocEditor.version = function () { ...@@ -550,5 +552,11 @@ DocsAPI.DocEditor.version = function () {
DesktopOfflineAppDocumentEndSave(0); DesktopOfflineAppDocumentEndSave(0);
return data; return data;
}); });
})
.onStateChange(function (m_dict) {
var g = this;
if (m_dict.changed === true) {
return g.notifyChange();
}
}); });
}(rJS, RSVP, require, jIO)); }(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