summaryrefslogtreecommitdiff
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:56:07 +0200
commit7d3d62e5ed98cfed8b46bbb1c620142f190d2c03 (patch)
treebc0136e64dbe920eb033d678767770047a91852e
parentb693dcf4e3981425df7b3cda504cab3966d32ebe (diff)
Fix unintentional draft autosave request if autosave is disabled (#1489882)
-rw-r--r--CHANGELOG1
-rw-r--r--program/js/app.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 9202c837a..64aef9d37 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -19,6 +19,7 @@ CHANGELOG Roundcube Webmail
- Add configurable LDAP_OPT_DEREF option (#1489864)
- Optimize some framed pages content for better performance (#1489792)
- Fix mbox files import
+- Fix unintentional draft autosave request if autosave is disabled (#1489882)
RELEASE 1.0.1
-------------
diff --git a/program/js/app.js b/program/js/app.js
index 042ebb724..9aa0942f1 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3703,12 +3703,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) {