Commit d6af5b92 authored by konovalovsergey's avatar konovalovsergey Committed by Alexander.Trofimov

могли сохраненяться изменения после ошибки Update Version.

parent 4ec182a1
......@@ -1577,7 +1577,7 @@ var editor;
this.collaborativeEditing.sendChanges(this.IsUserSave);
} else {
nState = t.CoAuthoringApi.get_state();
if (AscCommon.ConnectionState.Close === nState) {
if (AscCommon.ConnectionState.ClosedCoAuth === nState || AscCommon.ConnectionState.ClosedAll === nState) {
// Отключаемся от сохранения, соединение потеряно
if (this.IsUserSave) {
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
......
......@@ -1189,7 +1189,7 @@ function OnSave_Callback(e) {
CollaborativeEditing.Send_Changes(editor.IsUserSave, {UserId: editor.CoAuthoringApi.getUserConnectionId(), UserShortId : editor.DocInfo.get_UserId(), CursorInfo: CursorInfo});
} else {
var nState = editor.CoAuthoringApi.get_state();
if (AscCommon.ConnectionState.Close === nState) {
if (AscCommon.ConnectionState.ClosedCoAuth === nState || AscCommon.ConnectionState.ClosedAll === nState) {
// Отключаемся от сохранения, соединение потеряно
editor.canSave = true;
editor.IsUserSave = false;
......
......@@ -1984,7 +1984,7 @@ function OnSave_Callback(e) {
CollaborativeEditing.Send_Changes(editor.IsUserSave, {UserId: editor.CoAuthoringApi.getUserConnectionId(), UserShortId : editor.DocInfo.get_UserId(), CursorInfo: CursorInfo}, HaveOtherChanges);
} else {
var nState = editor.CoAuthoringApi.get_state();
if (AscCommon.ConnectionState.Close === nState) {
if (AscCommon.ConnectionState.ClosedCoAuth === nState || AscCommon.ConnectionState.ClosedAll === nState) {
// Отключаемся от сохранения, соединение потеряно
editor.canSave = true;
editor.IsUserSave = false;
......
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