From 32dce59ce1aa32846948148fafaffb190206477e Mon Sep 17 00:00:00 2001 From: Gislene Pereira Date: Tue, 26 Jan 2016 16:42:29 -0300 Subject: Issue #550 - Alert user when attachment size exceeds 1MB limit. --- web-ui/app/js/views/templates.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web-ui/app/js/views/templates.js') diff --git a/web-ui/app/js/views/templates.js b/web-ui/app/js/views/templates.js index d0a1ccde..c799b052 100644 --- a/web-ui/app/js/views/templates.js +++ b/web-ui/app/js/views/templates.js @@ -27,7 +27,8 @@ define(['hbs/templates'], function (templates) { fixedRecipient: window.Pixelated['app/templates/compose/fixed_recipient.hbs'], 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'] + attachmentsList: window.Pixelated['app/templates/compose/attachments_list.hbs'], + uploadAttachmentFailed: window.Pixelated['app/templates/compose/upload_attachment_failed.hbs'] }, tags: { tagList: window.Pixelated['app/templates/tags/tag_list.hbs'], @@ -73,6 +74,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('uploadAttachmentFailed', Templates.compose.uploadAttachmentFailed); return Templates; }); -- cgit v1.2.3