]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1262457 - the list of comment tags in the 'tags' menu isn't updated in real time
authorDavid Lawrence <dkl@mozilla.com>
Wed, 21 Dec 2016 20:47:44 +0000 (20:47 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 21 Dec 2016 20:47:44 +0000 (20:47 +0000)
extensions/BugModal/web/comments.js

index b18f7d3d1277a11ec42706417a4c2beb8528d251..7eb933cfc691252a7b44fedf4b79cff2865cd9dc 100644 (file)
@@ -285,6 +285,7 @@ $(function() {
         // update ui
         that.parent('.comment-tag').remove();
         renderTags(commentNo, tagsFromDom(container));
+        updateTagsMenu();
 
         // update bugzilla
         bugzilla_ajax(
@@ -296,6 +297,7 @@ $(function() {
             },
             function(data) {
                 renderTags(commentNo, data);
+                updateTagsMenu();
             },
             function(message) {
                 taggingError(commentNo, message);
@@ -438,6 +440,7 @@ $(function() {
                     },
                     function(data) {
                         renderTags(commentNo, data);
+                        updateTagsMenu();
                     },
                     function(message) {
                         taggingError(commentNo, message);