diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-19 17:53:52 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-19 17:53:52 -0200 |
commit | 32fe00c7b23883a0ce35910537cb1966457624cb (patch) | |
tree | ca700d58f3a14c4ddb9fa2e2e63f87facb23bcf9 /web-ui/app | |
parent | 878ee42e6a4ee40c1f7e3ff537dd3bf21a76368f (diff) |
#81 Fix checking if any mail is marked when on 'all' tag
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/mail_list/ui/mail_list.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_list.js b/web-ui/app/js/mail_list/ui/mail_list.js index da79f20b..56c5c4f9 100644 --- a/web-ui/app/js/mail_list/ui/mail_list.js +++ b/web-ui/app/js/mail_list/ui/mail_list.js @@ -134,7 +134,7 @@ define( this.checkedMailsForCurrentTag = function () { var checkedMailsForCurrentTag = _.filter(self.attr.checkedMails, function (mail) { - return mail.mailbox === self.attr.currentTag || _.contains(mail.tags, self.attr.currentTag); + return self.attr.currentTag === 'all' || mail.mailbox === self.attr.currentTag || _.contains(mail.tags, self.attr.currentTag); }); return checkedMailsForCurrentTag.length > 0 ? checkedMailsForCurrentTag : {}; |