From 5a0425986800bf03de8c49dc00f45d86d3b365ee Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 16 Oct 2014 14:59:49 +0200 Subject: for #95, make sure that the tag list is also refreshed when the mail list is refreshed, since there can be new unread mails and we need to update the count --- web-ui/app/js/mail_list/ui/mail_list.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web-ui/app/js/mail_list/ui') 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 1f915a57..7b518320 100644 --- a/web-ui/app/js/mail_list/ui/mail_list.js +++ b/web-ui/app/js/mail_list/ui/mail_list.js @@ -100,6 +100,9 @@ define( }; this.refreshMailList = function (ev, data) { + if (ev) { // triggered by the event, so we need to refresh the tag list + this.trigger(document, events.dispatchers.tags.refreshTagList, { skipMailListRefresh: true }); + } resetMailList(); renderMails(data.mails); }; -- cgit v1.2.3