Aleksander Machniak
2014-07-09 d323e30a576e242538d4d1f1eed296490d3164b9
Revert "Fix bug where compose storage wasn't cleared on page unload (#1489818)"

This reverts commit 8437d76389773571ba61d1a50cecba6b72d701c6.
2 files modified
9 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 8 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -22,7 +22,6 @@
- Fix Delete button state after deleting identity/response (#1489972)
- Fix bug where contacts with no email address were listed on compose addressbook (#1489970)
- Fix images import from various vCard formats (#1489977)
- Fix bug where compose storage wasn't cleared on page unload (#1489818)
RELEASE 1.0.1
-------------
program/js/app.js
@@ -590,6 +590,9 @@
    if (this.task == 'mail' && this.env.action == 'compose' && $.inArray(command, this.env.compose_commands) < 0 && !this.env.server_error) {
      if (this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning')))
        return false;
      // remove copy from local storage if compose screen is left intentionally
      this.remove_compose_data(this.env.compose_id);
    }
    // process external commands
@@ -3676,11 +3679,6 @@
          ref.compose_type_activity_last = ref.compose_type_activity;
        }
      }, 5000);
      // remove data from local storage if compose screen is left
      $(window).unload(function() {
        ref.remove_compose_data(ref.env.compose_id);
      });
    }
    // Unlock interface now that saving is complete