diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-15 15:04:48 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-15 15:10:07 -0200 |
commit | 43a783e10f0b89820fb8d1e5677b0fdbcf7e9b6e (patch) | |
tree | cb0de1b1f540ab670f78f3cc02f2e28ac7a6071f /web-ui/app/js/services/mail_service.js | |
parent | ee5ce9624a800bb85b05d3c73f4ca30c61443429 (diff) |
#153 fix mail checking and unchecking on mail list
Diffstat (limited to 'web-ui/app/js/services/mail_service.js')
-rw-r--r-- | web-ui/app/js/services/mail_service.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web-ui/app/js/services/mail_service.js b/web-ui/app/js/services/mail_service.js index ca8b1da1..1fa41619 100644 --- a/web-ui/app/js/services/mail_service.js +++ b/web-ui/app/js/services/mail_service.js @@ -108,8 +108,7 @@ define( this.triggerMailsRead = function (mails) { return _.bind(function () { this.refreshMails(); - this.trigger(document, events.ui.mail.unchecked, { mails: mails }); - this.trigger(document, events.ui.mails.hasMailsChecked, false); + this.trigger(document, events.ui.mails.uncheckAll); }, this); }; @@ -119,8 +118,7 @@ define( this.refreshMails(); this.trigger(document, events.ui.userAlerts.displayMessage, { message: dataToDelete.successMessage}); - this.trigger(document, events.ui.mail.unchecked, { mails: mails }); - this.trigger(document, events.ui.mails.hasMailsChecked, false); + this.trigger(document, events.ui.mails.uncheckAll); this.trigger(document, events.mail.deleted, { mails: mails }); }, this); }; |