From 43a783e10f0b89820fb8d1e5677b0fdbcf7e9b6e Mon Sep 17 00:00:00 2001 From: Alexandre Pretto Nunes Date: Thu, 15 Jan 2015 15:04:48 -0200 Subject: #153 fix mail checking and unchecking on mail list --- web-ui/app/js/services/mail_service.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'web-ui/app/js/services') 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); }; -- cgit v1.2.3