From: jordan Date: Wed, 23 May 2012 17:10:19 +0000 (+0000) Subject: trigger contentchanged event on subscription widget add/remove tags X-Git-Tag: live~49 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/a1e4a08a0f5817ed2b8fc9290775e9cdba7bdd2b trigger contentchanged event on subscription widget add/remove tags git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1268 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index 1595df7..55a3f1e 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -731,14 +731,15 @@ function pickedTags(){ var deleteTagLocally = function(){ from_target[tagname].remove(); delete from_target[tagname]; + $(".tags.interesting").trigger('contentchanged'); }; + if (send_ajax){ sendAjax(tagname,reason,'remove',deleteTagLocally); } else { deleteTagLocally(); } - }; var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){ @@ -795,6 +796,8 @@ function pickedTags(){ to_tag_container.append(new_tag); to_target[tagname] = new_tag; + + to_tag_container.trigger('contentchanged'); }); } };