]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/osqa.main.js
trigger contentchanged event on subscription widget add/remove tags
[osqa.git] / forum / skins / default / media / js / osqa.main.js
index 1595df74bdfc14502a212e125749f71165e050d7..55a3f1e02611ceba240851212cb4b008ed49167c 100644 (file)
@@ -731,14 +731,15 @@ function pickedTags(){
         var deleteTagLocally = function(){\r
             from_target[tagname].remove();\r
             delete from_target[tagname];\r
         var deleteTagLocally = function(){\r
             from_target[tagname].remove();\r
             delete from_target[tagname];\r
+            $(".tags.interesting").trigger('contentchanged');\r
         };\r
         };\r
+\r
         if (send_ajax){\r
             sendAjax(tagname,reason,'remove',deleteTagLocally);\r
         }\r
         else {\r
             deleteTagLocally();\r
         }\r
         if (send_ajax){\r
             sendAjax(tagname,reason,'remove',deleteTagLocally);\r
         }\r
         else {\r
             deleteTagLocally();\r
         }\r
-\r
     };\r
 \r
     var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){\r
     };\r
 \r
     var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){\r
@@ -795,6 +796,8 @@ function pickedTags(){
                 to_tag_container.append(new_tag);\r
 \r
                 to_target[tagname] = new_tag;\r
                 to_tag_container.append(new_tag);\r
 \r
                 to_target[tagname] = new_tag;\r
+\r
+                to_tag_container.trigger('contentchanged');\r
             });\r
         }\r
     };\r
             });\r
         }\r
     };\r