summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins
diff options
context:
space:
mode:
authorGiovane Liberato <giovaneliberato@gmail.com>2015-11-13 16:07:39 -0200
committerGiovane Liberato <giovaneliberato@gmail.com>2015-11-13 16:07:39 -0200
commitc915f6b744769cd87cc284fb0d7d89bc51ae62df (patch)
treedef0ffb3c12e61412da9eff8063f83ef2c002def /web-ui/app/js/mixins
parentb7ff48dca546c97f78fb98ca83afd6c9684f2612 (diff)
parentde1e3408cc7d8a4beff703944c3659aeb9032fd2 (diff)
Merge pull request #521 from rdoh/remove_save_draft_button
merge "remove save draft button, related css and js"
Diffstat (limited to 'web-ui/app/js/mixins')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js6
1 files changed, 1 insertions, 5 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 b80a48cd..aa01e2cb 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -23,10 +23,9 @@ define(
'page/events',
'views/i18n',
'mail_view/ui/send_button',
- 'mail_view/ui/draft_button',
'flight/lib/utils'
],
- function(viewHelper, Recipients, DraftSaveStatus, events, i18n, SendButton, DraftButton, utils) {
+ function(viewHelper, Recipients, DraftSaveStatus, events, i18n, SendButton, utils) {
'use strict';
function withMailEditBase() {
@@ -34,7 +33,6 @@ define(
this.defaultAttrs({
bodyBox: '#text-box',
sendButton: '#send-button',
- draftButton: '#draft-button',
cancelButton: '#cancel-button',
trashButton: '#trash-button',
toArea: '#recipients-to-area',
@@ -93,10 +91,8 @@ define(
this.attr.recipientValues = context.recipients;
this.attachRecipients(context);
- this.on(this.select('draftButton'), 'click', this.buildAndSaveDraft);
this.on(this.select('trashButton'), 'click', this.trashMail);
SendButton.attachTo(this.select('sendButton'));
- DraftButton.attachTo(this.select('draftButton'));
this.warnSendButtonOfRecipients();
};