From c28bdb520cc4ea1249d5a2953d9f78d40dd10806 Mon Sep 17 00:00:00 2001 From: NavaL Date: Mon, 11 Jan 2016 18:37:03 +0100 Subject: auto save draft on adding attachment, within timeout Issue #573 --- web-ui/app/js/mixins/with_mail_edit_base.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web-ui/app/js/mixins/with_mail_edit_base.js') diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js index d078c582..d7da4680 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -107,6 +107,7 @@ define( this.enableAutoSave = function () { this.select('bodyBox').on('input', this.monitorInput.bind(this)); this.select('subjectBox').on('input', this.monitorInput.bind(this)); + this.on(document, events.mail.appendAttachment, this.monitorInput.bind(this)); DraftSaveStatus.attachTo(this.select('draftSaveStatus')); }; -- cgit v1.2.3