Commit a9eaec4d authored by konovalovsergey's avatar konovalovsergey

forceSave

parent 53f20b9a
......@@ -473,6 +473,10 @@
AscCommon.getFile(url);
}
};
baseEditorsApi.prototype.forceSave = function()
{
this.CoAuthoringApi.forceSave()
};
// Выставление интервала автосохранения (0 - означает, что автосохранения нет)
baseEditorsApi.prototype.asc_setAutoSaveGap = function(autoSaveGap)
{
......
......@@ -347,6 +347,12 @@
}
};
CDocsCoApi.prototype.forceSave = function() {
if (this._CoAuthoringApi && this._onlineWork) {
this._CoAuthoringApi.forceSave();
}
};
CDocsCoApi.prototype.callback_OnAuthParticipantsChanged = function(e, count) {
if (this.onAuthParticipantsChanged) {
this.onAuthParticipantsChanged(e, count);
......@@ -821,6 +827,10 @@
this._send({'type': 'versionHistory', 'cmd': data});
};
DocsCoApi.prototype.forceSave = function() {
this._send({'type': 'forcesave'});
};
DocsCoApi.prototype.openDocument = function(data) {
this._send({"type": "openDocument", "message": data});
};
......
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