diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-26 19:06:11 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-26 19:17:05 +0100 |
commit | aa30cf8f3c05ab4fd69f7ab2dea39e56d8bf1976 (patch) | |
tree | 37f351b6e2c7a74df61003e43c89ffb6baa44720 /program/js | |
parent | d608088a64e961409e9b201fe83d050e7bfb90e3 (diff) |
Better fix for "saving draft just after entering compose window (#1489012)"
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 87cdf3b3d..eb8644a5b 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -950,7 +950,7 @@ function rcube_webmail() clearTimeout(this.save_timer); // compose form did not change (and draft wasn't saved already) - if (this.draft_saved && this.cmp_hash == this.compose_field_hash()) { + if (this.env.draft_id && this.cmp_hash == this.compose_field_hash()) { this.auto_save_start(); break; } @@ -3345,7 +3345,7 @@ function rcube_webmail() this.set_draft_id = function(id) { - this.draft_saved = id; + this.env.draft_id = id; $("input[name='_draft_saveid']").val(id); }; |