summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-06 16:19:36 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-06 16:45:48 -0200
commitb0720edaa0d51ee9e807495fa536d890d332c50d (patch)
treef3f1021ded39bafaeb24adca837c65477c36ad1f /web-ui/app
parent45c4d0b4ccfe8619438d3e9752624b639feaea3d (diff)
Update tests to refactored events behaviour
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/mail_list/ui/mail_list.js2
-rw-r--r--web-ui/app/js/tags/ui/tag.js2
2 files changed, 3 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 11300346..3b0c23fb 100644
--- a/web-ui/app/js/mail_list/ui/mail_list.js
+++ b/web-ui/app/js/mail_list/ui/mail_list.js
@@ -125,7 +125,7 @@ define(
};
this.updateCheckAllCheckbox = function () {
- this.trigger(document, events.ui.mails.hasMailsChecked, {hasMailsChecked: this.attr.checkedMails.length > 0});
+ this.trigger(document, events.ui.mails.hasMailsChecked, {hasMailsChecked: _.keys(this.attr.checkedMails).length > 0});
};
this.addToSelectedMails = function (ev, data) {
diff --git a/web-ui/app/js/tags/ui/tag.js b/web-ui/app/js/tags/ui/tag.js
index e6375034..dfedb137 100644
--- a/web-ui/app/js/tags/ui/tag.js
+++ b/web-ui/app/js/tags/ui/tag.js
@@ -65,6 +65,8 @@ define(
this.triggerSelect = function () {
this.trigger(document, events.ui.tag.select, { tag: this.attr.tag.name });
+
+ this.removeSearchingClass();
};
this.addSearchingClass = function() {