summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-01-09 12:14:44 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-01-09 12:14:44 +0100
commit21153d9310aeb7962c4e03be83464633f38ca166 (patch)
tree5e2b59ecbc189cfb9faccedf941db87c4fc2aa49 /web-ui/app
parent665bda573b18d986e642499a665563611408a07e (diff)
Fixed call order dependency for tag creation.
- Successful rendering of tag list in left pane depended on specific call order of async events
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/mixins/with_mail_tagging.js1
-rw-r--r--web-ui/app/js/services/mail_service.js1
2 files changed, 1 insertions, 1 deletions
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) {