summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins/with_mail_edit_base.js
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2015-12-22 18:58:57 +0100
committerNavaL <mnandri@thoughtworks.com>2015-12-22 19:05:10 +0100
commitec3a7f46f16c32bbaf22a14a92a890e1ab900e94 (patch)
tree4e900828ccbc1d7be63b73d5e6253acc40e901aa /web-ui/app/js/mixins/with_mail_edit_base.js
parent4cb47c1848bb5d20b5ae167a7ab2879d00825f84 (diff)
front-end for sending attachments
Issue #548
Diffstat (limited to 'web-ui/app/js/mixins/with_mail_edit_base.js')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js5
1 files changed, 4 insertions, 1 deletions
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();
};