diff options
author | Giovane <giovaneliberato@gmail.com> | 2016-01-27 15:44:17 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2016-01-27 16:06:26 -0200 |
commit | ec80088330eff5f44e8cc8eaab04c83c259b9098 (patch) | |
tree | 4aa75950bff5fd6efb8b79b4f9484dd1ac0e64c6 /web-ui/app/js/mail_view/ui/mail_view.js | |
parent | 0881d95faba366946a1942bf03eec2cb18318aaa (diff) |
Keep attachments when forwarding a mail #509
- Extract the attachment file box to a partial
- Adds logic to show/hide the download arrow icon
Diffstat (limited to 'web-ui/app/js/mail_view/ui/mail_view.js')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 093f498d..ba4d6e85 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -46,11 +46,15 @@ define( this.displayMail = function (event, data) { this.attr.mail = data.mail; - var signed, encrypted; + var signed, encrypted, attachments; data.mail.security_casing = data.mail.security_casing || {}; signed = this.checkSigned(data.mail); encrypted = this.checkEncrypted(data.mail); + attachments = data.mail.attachments.map(function (attachment) { + attachment.received = true; + return attachment; + }); if(data.mail.mailbox === 'sent') { encrypted = undefined; @@ -64,7 +68,7 @@ define( tags: data.mail.tags, encryptionStatus: encrypted, signatureStatus: signed, - attachments: data.mail.attachments + attachments: attachments })); this.$node.find('.bodyArea').html(viewHelpers.formatMailBody(data.mail)); |