Aleksander Machniak
2014-05-12 70ba547d109bf3a5d01f0181b8546ffafee1dc85
Fix unintentional draft autosave request if autosave is disabled (#1489882)

Conflicts:

CHANGELOG
2 files modified
4 ■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 3 ●●●● patch | view | raw | blame | history
CHANGELOG
@@ -2,6 +2,7 @@
===========================
- Add configurable LDAP_OPT_DEREF option (#1489864)
- Fix unintentional draft autosave request if autosave is disabled (#1489882)
RELEASE 1.0.1
-------------
program/js/app.js
@@ -3644,12 +3644,13 @@
  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) {