diff options
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 8 |
1 files changed, 7 insertions, 1 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 fbf5c6ed..214b85d8 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -64,6 +64,10 @@ define( encrypted = this.checkEncrypted(data.mail); } + var attachments = _.map(data.mail.attachments, function(a){ + return { 'encoding': a.headers['Content-Transfer-Encoding'], 'name': a.name, 'ident': a.ident }; + }); + this.$node.html(templates.mails.fullView({ header: data.mail.header, body: [], @@ -72,7 +76,8 @@ define( tags: data.mail.tags, encryptionStatus: encrypted, signatureStatus: signed, - features: features + features: features, + attachments: attachments })); this.$node.find('.bodyArea').html(viewHelpers.formatMailBody(data.mail)); @@ -197,6 +202,7 @@ define( this.trigger(events.mail.want, {mail: this.attr.ident, caller: this}); }; + this.after('initialize', function () { this.on(this, events.mail.here, this.displayMail); this.on(this, events.mail.notFound, this.openNoMessageSelectedPane); |