Commit f81942bd authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 35971

close cell editor if user can unlock document
parent 0f8631d5
...@@ -3203,13 +3203,19 @@ var editor; ...@@ -3203,13 +3203,19 @@ var editor;
spreadsheet_api.prototype._autoSave = function () { spreadsheet_api.prototype._autoSave = function () {
if (!this.DocumentLoadComplete || (!this.canUnlockDocument && 0 === this.autoSaveGap && if (!this.DocumentLoadComplete || (!this.canUnlockDocument && 0 === this.autoSaveGap &&
(!this.collaborativeEditing.getFast() || !this.collaborativeEditing.getCollaborativeEditing())) || (!this.collaborativeEditing.getFast() || !this.collaborativeEditing.getCollaborativeEditing())) ||
this.asc_getCellEditMode() || this.asc_getIsTrackShape() || this.isOpenedChartFrame || this.asc_getIsTrackShape() || this.isOpenedChartFrame || !History.IsEndTransaction() || !this.canSave) {
!History.IsEndTransaction() || !this.canSave) {
return; return;
} }
// Check edit mode after unlock document http://bugzilla.onlyoffice.com/show_bug.cgi?id=35971
if (this.canUnlockDocument) { if (this.canUnlockDocument) {
this.asc_Save(true); this.lastSaveTime = new Date();
// Close cell edit without errors (isIdle = true)
this.asc_Save(true, false, true);
return;
}
if (this.asc_getCellEditMode()) {
return; return;
} }
......
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