diff options
author | Robin Doherty <rdoherty@gmail.com> | 2015-11-12 20:25:53 +1100 |
---|---|---|
committer | Robin Doherty <rdoherty@gmail.com> | 2015-11-12 20:37:26 +1100 |
commit | de1e3408cc7d8a4beff703944c3659aeb9032fd2 (patch) | |
tree | 27c7566e935c8b3fff85a71f5a3f916ebd8c8c12 /web-ui/app/js/mixins | |
parent | 3ef5fb5dd004edcf23d55b2533c37ffafec828f4 (diff) |
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.js | 6 |
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(); }; |