From 21153d9310aeb7962c4e03be83464633f38ca166 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Fri, 9 Jan 2015 12:14:44 +0100 Subject: Fixed call order dependency for tag creation. - Successful rendering of tag list in left pane depended on specific call order of async events --- web-ui/app/js/mixins/with_mail_tagging.js | 1 - web-ui/app/js/services/mail_service.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'web-ui/app/js') diff --git a/web-ui/app/js/mixins/with_mail_tagging.js b/web-ui/app/js/mixins/with_mail_tagging.js index c3647443..62ca7627 100644 --- a/web-ui/app/js/mixins/with_mail_tagging.js +++ b/web-ui/app/js/mixins/with_mail_tagging.js @@ -59,7 +59,6 @@ define( this.tagCompleter.clearPrefetchCache(); this.tagCompleter.clearRemoteCache(); this.updateTags(this.attr.mail, _.uniq(tagsCopy)); - this.trigger(document, events.dispatchers.tags.refreshTagList, { skipMailListRefresh: true }); }; this.after('displayMail', function () { diff --git a/web-ui/app/js/services/mail_service.js b/web-ui/app/js/services/mail_service.js index 1d5db40e..99f812f8 100644 --- a/web-ui/app/js/services/mail_service.js +++ b/web-ui/app/js/services/mail_service.js @@ -58,6 +58,7 @@ define( var success = function (data) { this.refreshMails(); $(document).trigger(events.mail.tags.updated, { ident: ident, tags: data.tags }); + $(document).trigger(events.dispatchers.tags.refreshTagList, { skipMailListRefresh: true }); }; var failure = function (resp) { -- cgit v1.2.3