]> git.openstreetmap.org Git - osqa.git/commitdiff
trigger contentchanged event on subscription widget add/remove tags
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 23 May 2012 17:10:19 +0000 (17:10 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 23 May 2012 17:10:19 +0000 (17:10 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1268 0cfe37f9-358a-4d5e-be75-b63607b5c754

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
+            $(".tags.interesting").trigger('contentchanged');\r
         };\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
@@ -795,6 +796,8 @@ function pickedTags(){
                 to_tag_container.append(new_tag);\r
 \r
                 to_target[tagname] = new_tag;\r
+\r
+                to_tag_container.trigger('contentchanged');\r
             });\r
         }\r
     };\r