Cancel autosave timeout when moving through history

[MAILPOET-1976]
This commit is contained in:
Ján Mikláš
2019-06-19 10:59:31 +02:00
committed by M. Shull
parent 52daa967ed
commit 99a3e87c61

View File

@@ -295,6 +295,7 @@ Module.autoSave = function () {
saveTimeout = setTimeout(function () { saveTimeout = setTimeout(function () {
if (skipNextAutoSave) { if (skipNextAutoSave) {
skipNextAutoSave = false; skipNextAutoSave = false;
Module._cancelAutosave();
return; return;
} }
App.getChannel().request('save').always(function () { App.getChannel().request('save').always(function () {