diff options
author | NavaL <mnandri@thoughtworks.com> | 2016-01-11 16:55:25 +0100 |
---|---|---|
committer | NavaL <mnandri@thoughtworks.com> | 2016-01-11 16:56:29 +0100 |
commit | 058d14143c179d9923eea433fc63094f4f9059aa (patch) | |
tree | cef20e046a64cb44ad0d882465411335cf049007 /web-ui/app/js/mail_view/ui/draft_box.js | |
parent | 64106a5d6b589616db5ddd07f383b74c66e0b39d (diff) |
merging attachment_list ui and data, and making it into a mixin
Issue #573
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.js | 5 |
1 files changed, 3 insertions, 2 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 675020cb..6a640d88 100644 --- a/web-ui/app/js/mail_view/ui/draft_box.js +++ b/web-ui/app/js/mail_view/ui/draft_box.js @@ -48,6 +48,7 @@ define( .cc(this.attr.recipientValues.cc) .bcc(this.attr.recipientValues.bcc) .body(this.select('bodyBox').val()) + .attachment(this.attr.attachments) .tag(tag); }; @@ -55,7 +56,6 @@ define( var mail = data.mail; var body = mail.textPlainBody; this.attr.ident = mail.ident; - this.render(templates.compose.box, { recipients: { to: mail.header.to, @@ -63,7 +63,8 @@ define( bcc: mail.header.bcc }, subject: mail.header.subject, - body: body + body: body, + attachments: mail.attachments }); this.enableFloatlabel('input.floatlabel'); |