Commit cc88a86c authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

если нет совместного редактирования, то при сохранении надо всегда чистить...

если нет совместного редактирования, то при сохранении надо всегда чистить кешированную копию файла, иначе будет всегда одна версия файла.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54224 954022d7-b5bf-4e40-9824-e11837661b57
parent 9a6309ec
......@@ -598,6 +598,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
if (isDocumentSaved) {
// Запускаем таймер автосохранения
this.autoSaveInit();
//если нет совместного редактирования, надо всегда чистить кешированную копию файла, иначе будет всегда одна версия файла.
if(!this.CoAuthoringApi.get_onlineWork())
{
var rData = {"id": this.documentId, "vkey": this.documentVKey, "format": this.documentFormat, "c":"cc"};
this._asc_sendCommand(function(){}, rData);
}
} else {
this.CoAuthoringApi.disconnect();
}
......
......@@ -1424,6 +1424,12 @@ asc_docs_api.prototype.asc_OnSaveEnd = function (isDocumentSaved) {
if (isDocumentSaved) {
// Запускаем таймер автосохранения
this.autoSaveInit();
//если нет совместного редактирования, надо всегда чистить кешированную копию файла, иначе будет всегда одна версия файла.
if(!this.CoAuthoringApi.get_onlineWork())
{
var rData = {"id": documentId, "vkey": documentVKey, "format": documentFormat, "c":"cc"};
sendCommand(this, function(){}, rData);
}
} else {
this.CoAuthoringApi.disconnect();
}
......
......@@ -2629,6 +2629,12 @@ asc_docs_api.prototype.asc_OnSaveEnd = function (isDocumentSaved) {
if (isDocumentSaved) {
// Запускаем таймер автосохранения
this.autoSaveInit();
//если нет совместного редактирования, надо всегда чистить кешированную копию файла, иначе будет всегда одна версия файла.
if(!this.CoAuthoringApi.get_onlineWork())
{
var rData = {"id": documentId, "vkey": documentVKey, "format": documentFormat, "c":"cc"};
sendCommand(this, function(){}, rData);
}
} else {
this.CoAuthoringApi.disconnect();
}
......
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