diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-02-12 14:54:27 -0200 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-02-12 14:54:27 -0200 |
commit | 6775e960ae327312f715618a6e5b3f47c51d0fa1 (patch) | |
tree | 0dc1147cf5edeb6f79192dedb8e7c6f31a5e465f /web-ui/app/js | |
parent | b5d81e81b0145e32ddfcfe62f169b241beea621c (diff) |
Revert "Revert "Issue #549 - Trigger save draft event after remove attachment""
This reverts commit e713820dc119ff33fdd3b3161ad693fb430c32f4.
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/mail_view/ui/attachment_list.js | 1 | ||||
-rw-r--r-- | web-ui/app/js/mixins/with_mail_edit_base.js | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_view/ui/attachment_list.js b/web-ui/app/js/mail_view/ui/attachment_list.js index c8a646af..ff7602ec 100644 --- a/web-ui/app/js/mail_view/ui/attachment_list.js +++ b/web-ui/app/js/mail_view/ui/attachment_list.js @@ -198,7 +198,6 @@ define( var success = function() { this.removeAttachmentFromList(data); this.destroyAttachmentElement(data); - console.log('Success'); }; monitoredAjax(this, '/attachment/' + data.ident, { 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 d7da4680..41de162c 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -108,6 +108,7 @@ define( 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)); + this.on(document, events.mail.removeAttachment, this.monitorInput.bind(this)); DraftSaveStatus.attachTo(this.select('draftSaveStatus')); }; @@ -260,4 +261,3 @@ define( return withMailEditBase; }); - |