summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 9e05233f1..b2a6a0409 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -986,7 +986,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;
}
@@ -3302,7 +3302,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);
};