diff options
author | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-02-08 17:54:53 +0100 |
---|---|---|
committer | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-02-08 18:10:53 +0100 |
commit | e713820dc119ff33fdd3b3161ad693fb430c32f4 (patch) | |
tree | 70a3ba50fb7f92f9a6e13b1dd2ad5a575e2411d6 /web-ui/app/js | |
parent | 91223543207c4a56370ff609df9912a5b11262d7 (diff) |
Revert "Issue #549 - Trigger save draft event after remove attachment"
This reverts commit 0e443ce40e684c095285efb774fefe3a824413d7.
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, 2 insertions, 1 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 ff7602ec..c8a646af 100644 --- a/web-ui/app/js/mail_view/ui/attachment_list.js +++ b/web-ui/app/js/mail_view/ui/attachment_list.js @@ -198,6 +198,7 @@ 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 41de162c..d7da4680 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -108,7 +108,6 @@ 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')); }; @@ -261,3 +260,4 @@ define( return withMailEditBase; }); + |