summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-12 17:56:07 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-12 17:57:06 +0200
commit70ba547d109bf3a5d01f0181b8546ffafee1dc85 (patch)
tree5f93936af465f433f9c15c933290277bb98cd01f /program/js
parentf92cccac38f877ab3537dcb489bb4a6216334f84 (diff)
Fix unintentional draft autosave request if autosave is disabled (#1489882)
Conflicts: CHANGELOG
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 0f76da01e..f0ad2ab5f 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3644,12 +3644,13 @@ function rcube_webmail()
this.auto_save_start = function()
{
- if (this.env.draft_autosave)
+ if (this.env.draft_autosave) {
this.draft_autosave_submit = false;
this.save_timer = setTimeout(function(){
ref.draft_autosave_submit = true; // set auto-saved flag (#1489789)
ref.command("savedraft");
}, this.env.draft_autosave * 1000);
+ }
// save compose form content to local storage every 5 seconds
if (!this.local_save_timer && window.localStorage) {