diff options
author | Gabriel Albo <gabriel@albo.com.br> | 2016-01-06 14:29:14 -0200 |
---|---|---|
committer | Gabriel Albo <gabriel@albo.com.br> | 2016-01-06 14:38:06 -0200 |
commit | a22f4372334d59bfe06d6554e8f917e331a06855 (patch) | |
tree | 7499d8eeabbe825eea6c38f657303ad5c2df1d85 /web-ui/app/js/mail_view | |
parent | 7d3c4032304b8ffc097272c36116321f6cf7956b (diff) |
#563 - Giovane/Albo - Fixing arrow toggling for drafts
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r-- | web-ui/app/js/mail_view/ui/compose_box.js | 12 | ||||
-rw-r--r-- | web-ui/app/js/mail_view/ui/draft_box.js | 3 |
2 files changed, 2 insertions, 13 deletions
diff --git a/web-ui/app/js/mail_view/ui/compose_box.js b/web-ui/app/js/mail_view/ui/compose_box.js index 993cf880..48a7c23f 100644 --- a/web-ui/app/js/mail_view/ui/compose_box.js +++ b/web-ui/app/js/mail_view/ui/compose_box.js @@ -73,24 +73,12 @@ define( this.trigger(events.dispatchers.rightPane.openNoMessageSelected); }; - this.toggleRecipientsArrows = function () { - if ($('#cc-bcc-collapse').hasClass('fa-angle-down')) { - $('#cc-bcc-collapse').removeClass('fa-angle-down'); - $('#cc-bcc-collapse').addClass('fa-angle-up'); - } else { - $('#cc-bcc-collapse').removeClass('fa-angle-up'); - $('#cc-bcc-collapse').addClass('fa-angle-down'); - } - }; - - this.after('initialize', function () { this.renderComposeBox(); this.select('toBox').focus(); this.on(document, events.mail.deleted, this.mailDeleted); this.on(document, events.mail.sent, this.showNoMessageSelected); - this.on($('#cc-bcc-collapse'), 'click', this.toggleRecipientsArrows); }); } } diff --git a/web-ui/app/js/mail_view/ui/draft_box.js b/web-ui/app/js/mail_view/ui/draft_box.js index e8dd10ea..675020cb 100644 --- a/web-ui/app/js/mail_view/ui/draft_box.js +++ b/web-ui/app/js/mail_view/ui/draft_box.js @@ -72,6 +72,7 @@ define( this.select('bodyBox').focus(); this.select('tipMsg').hide(); this.enableAutoSave(); + this.bindCollapse(); this.on(this.select('closeMailButton'), 'click', this.showNoMessageSelected); }; @@ -85,7 +86,7 @@ define( this.on(this, events.mail.here, this.renderDraftBox); this.on(document, events.mail.sent, this.showNoMessageSelected); this.on(document, events.mail.deleted, this.mailDeleted); - this.trigger(document, events.mail.want, { mail: this.attr.mailIdent, caller: this }); + this.trigger(document, events.mail.want, { mail: this.attr.mailIdent , caller: this }); }); } } |