Commit 59a89882 authored by Alexander.Trofimov's avatar Alexander.Trofimov

check DocumentLoadComplete on autoSave

parent 7eb00f47
...@@ -2960,9 +2960,10 @@ var editor; ...@@ -2960,9 +2960,10 @@ var editor;
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
////////////////////////////AutoSave api///////////////////////////////// ////////////////////////////AutoSave api/////////////////////////////////
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
spreadsheet_api.prototype._autoSave = function() { spreadsheet_api.prototype._autoSave = function () {
if ((!this.canUnlockDocument && 0 === this.autoSaveGap && (!this.collaborativeEditing.getFast() || !this.collaborativeEditing.getCollaborativeEditing())) if (!this.DocumentLoadComplete || (!this.canUnlockDocument && 0 === this.autoSaveGap &&
|| this.asc_getCellEditMode() || this.asc_getIsTrackShape() || this.isOpenedChartFrame || (!this.collaborativeEditing.getFast() || !this.collaborativeEditing.getCollaborativeEditing())) ||
this.asc_getCellEditMode() || this.asc_getIsTrackShape() || this.isOpenedChartFrame ||
!History.IsEndTransaction() || !this.canSave) { !History.IsEndTransaction() || !this.canSave) {
return; return;
} }
...@@ -2972,7 +2973,8 @@ var editor; ...@@ -2972,7 +2973,8 @@ var editor;
return; return;
} }
if (!History.Have_Changes(true) && !(this.collaborativeEditing.getCollaborativeEditing() && 0 !== this.collaborativeEditing.getOwnLocksLength())) { if (!History.Have_Changes(true) && !(this.collaborativeEditing.getCollaborativeEditing() &&
0 !== this.collaborativeEditing.getOwnLocksLength())) {
if (this.collaborativeEditing.getFast() && this.collaborativeEditing.haveOtherChanges()) { if (this.collaborativeEditing.getFast() && this.collaborativeEditing.haveOtherChanges()) {
AscCommon.CollaborativeEditing.Clear_CollaborativeMarks(); AscCommon.CollaborativeEditing.Clear_CollaborativeMarks();
......
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