Commit 6d2a9345 authored by Alexander.Trofimov's avatar Alexander.Trofimov

move call Continue_FastCollaborativeEditing to autoSave function

parent 0aa8dd28
......@@ -3311,7 +3311,6 @@ function CEditorPage(api)
oThis.m_oLogicDocument.Continue_CheckSpelling();
oThis.m_oLogicDocument.Continue_TrackRevisions();
oThis.m_oLogicDocument.Continue_FastCollaborativeEditing();
};
this.OnScroll = function()
{
......
......@@ -1881,22 +1881,26 @@ background-repeat: no-repeat;\
this.asc_Save(true);
this.lastSaveTime = _curTime;
} else {
var _bIsWaitScheme = false;
if (History.Points && History.Index >= 0 && History.Index < History.Points.length) {
if ((_curTime - History.Points[History.Index].Time) < this.intervalWaitAutoSave) {
_bIsWaitScheme = true;
if (AscCommon.CollaborativeEditing.Is_Fast()) {
this.WordControl.m_oLogicDocument.Continue_FastCollaborativeEditing();
} else {
var _bIsWaitScheme = false;
if (History.Points && History.Index >= 0 && History.Index < History.Points.length) {
if ((_curTime - History.Points[History.Index].Time) < this.intervalWaitAutoSave) {
_bIsWaitScheme = true;
}
}
}
if (!_bIsWaitScheme) {
var _interval = (AscCommon.CollaborativeEditing.m_nUseType <= 0) ? this.autoSaveGapSlow :
this.autoSaveGapFast;
if (!_bIsWaitScheme) {
var _interval = (AscCommon.CollaborativeEditing.m_nUseType <= 0) ? this.autoSaveGapSlow :
this.autoSaveGapFast;
if ((_curTime - this.lastSaveTime) > _interval) {
if (History.Have_Changes(true) == true) {
this.asc_Save(true);
if ((_curTime - this.lastSaveTime) > _interval) {
if (History.Have_Changes(true) == true) {
this.asc_Save(true);
}
this.lastSaveTime = _curTime;
}
this.lastSaveTime = _curTime;
}
}
}
......
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