summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/draft_box.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_view/ui/draft_box.js')
-rw-r--r--web-ui/app/js/mail_view/ui/draft_box.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/web-ui/app/js/mail_view/ui/draft_box.js b/web-ui/app/js/mail_view/ui/draft_box.js
index 07a7e472..88051f30 100644
--- a/web-ui/app/js/mail_view/ui/draft_box.js
+++ b/web-ui/app/js/mail_view/ui/draft_box.js
@@ -64,15 +64,7 @@ define(
},
subject: mail.header.subject,
body: body,
- attachments: this.convertToRemovableAttachments(mail.attachments)
- });
-
- var self = this;
- this.$node.find('i.remove-icon').bind('click', function(event) {
- var element = $(this);
- var ident = element.closest('li').attr('data-ident');
- self.trigger(document, events.mail.removeAttachment, {ident: ident});
- event.preventDefault();
+ attachments: mail.attachments
});
this.enableFloatlabel('input.floatlabel');
@@ -85,13 +77,6 @@ define(
this.on(this.select('closeMailButton'), 'click', this.showNoMessageSelected);
};
- this.convertToRemovableAttachments = function(attachments) {
- return attachments.map(function(attachment) {
- attachment.removable = true;
- return attachment;
- });
- };
-
this.mailDeleted = function(event, data) {
if (_.contains(_.pluck(data.mails, 'ident'), this.attr.ident)) {
this.trigger(events.dispatchers.rightPane.openNoMessageSelected);