From ec3a7f46f16c32bbaf22a14a92a890e1ab900e94 Mon Sep 17 00:00:00 2001 From: NavaL Date: Tue, 22 Dec 2015 18:58:57 +0100 Subject: front-end for sending attachments Issue #548 --- web-ui/app/js/mixins/with_mail_edit_base.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web-ui/app/js/mixins/with_mail_edit_base.js') diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js index a1fa6b09..1b5e8c52 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -23,9 +23,10 @@ define( 'page/events', 'views/i18n', 'mail_view/ui/send_button', + 'mail_view/ui/attachment', 'flight/lib/utils' ], - function(viewHelper, Recipients, DraftSaveStatus, events, i18n, SendButton, utils) { + function(viewHelper, Recipients, DraftSaveStatus, events, i18n, SendButton, Attachment, utils) { 'use strict'; function withMailEditBase() { @@ -33,6 +34,7 @@ define( this.defaultAttrs({ bodyBox: '#text-box', sendButton: '#send-button', + attachmentButton: '#attachment-button', cancelButton: '#cancel-button', trashButton: '#trash-button', toArea: '#recipients-to-area', @@ -93,6 +95,7 @@ define( this.on(this.select('trashButton'), 'click', this.discardMail); SendButton.attachTo(this.select('sendButton')); + Attachment.attachTo(this.select('attachmentButton')); this.warnSendButtonOfRecipients(); }; -- cgit v1.2.3