Commit 04c31ad1 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

safe_Apply_Changes

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52181 954022d7-b5bf-4e40-9824-e11837661b57
parent 7b9cb9e0
......@@ -1709,6 +1709,17 @@ asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles){
this.asc_fireCallback("asc_onInitTableTemplates",styles);
};
function safe_Apply_Changes()
{
try
{
CollaborativeEditing.Apply_Changes();
}
catch(err)
{
}
}
asc_docs_api.prototype.onSaveCallback = function (e) {
var t = this;
var nState;
......@@ -1719,7 +1730,7 @@ asc_docs_api.prototype.onSaveCallback = function (e) {
}
// Принимаем чужие изменения
CollaborativeEditing.Apply_Changes();
safe_Apply_Changes();
// Сохраняем файл на сервер
var data = this.WordControl.SaveDocument();
......
......@@ -2563,6 +2563,18 @@ asc_docs_api.prototype.asc_OnSaveEnd = function (isDocumentSaved) {
this.CoAuthoringApi.disconnect();
}
};
function safe_Apply_Changes()
{
try
{
CollaborativeEditing.Apply_Changes();
}
catch(err)
{
}
}
function OnSave_Callback(e)
{
var nState;
......@@ -2576,7 +2588,7 @@ function OnSave_Callback(e)
CollaborativeEditing.Clear_CollaborativeMarks();
// Принимаем чужие изменения
CollaborativeEditing.Apply_Changes();
safe_Apply_Changes();
// Сохраняем файл на сервер
var oBinaryFileWriter = new BinaryFileWriter(editor.WordControl.m_oLogicDocument);
......
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