summaryrefslogtreecommitdiff
path: root/web-ui/app/js/views/templates.js
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2016-01-27 15:44:17 -0200
committerGiovane <giovaneliberato@gmail.com>2016-01-27 16:06:26 -0200
commitec80088330eff5f44e8cc8eaab04c83c259b9098 (patch)
tree4aa75950bff5fd6efb8b79b4f9484dd1ac0e64c6 /web-ui/app/js/views/templates.js
parent0881d95faba366946a1942bf03eec2cb18318aaa (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/views/templates.js')
-rw-r--r--web-ui/app/js/views/templates.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web-ui/app/js/views/templates.js b/web-ui/app/js/views/templates.js
index c799b052..e5a3c435 100644
--- a/web-ui/app/js/views/templates.js
+++ b/web-ui/app/js/views/templates.js
@@ -28,6 +28,7 @@ define(['hbs/templates'], function (templates) {
recipients: window.Pixelated['app/templates/compose/recipients.hbs'],
feedback: window.Pixelated['app/templates/compose/feedback_box.hbs'],
attachmentsList: window.Pixelated['app/templates/compose/attachments_list.hbs'],
+ attachmentItem: window.Pixelated['app/templates/compose/attachment_item.hbs'],
uploadAttachmentFailed: window.Pixelated['app/templates/compose/upload_attachment_failed.hbs']
},
tags: {
@@ -74,6 +75,7 @@ define(['hbs/templates'], function (templates) {
Handlebars.registerPartial('tag_inner', Templates.tags.tagInner);
Handlebars.registerPartial('recipients', Templates.compose.recipients);
Handlebars.registerPartial('attachments_list', Templates.compose.attachmentsList);
+ Handlebars.registerPartial('attachment_item', Templates.compose.attachmentItem);
Handlebars.registerPartial('uploadAttachmentFailed', Templates.compose.uploadAttachmentFailed);
return Templates;