]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/osqa.main.js
The accept answer button changes it's title when using the ajax command.
[osqa.git] / forum / skins / default / media / js / osqa.main.js
index 8d55e50b6355421734eeebddf2e44a527f38a7e3..b52fd61e764e3f2c729b3d5f2095880c1e3dad99 100644 (file)
@@ -53,12 +53,14 @@ var response_commands = {
         var $answer = $('#answer-container-' + id);\r
         $answer.addClass('accepted-answer');\r
         $answer.find('.accept-answer').addClass('on');\r
+        $answer.find('.accept-answer').attr('title', $answer.find('.accept-answer').attr('bn:on'));\r
     },\r
 \r
     unmark_accepted: function(id) {\r
         var $answer = $('#answer-container-' + id);\r
         $answer.removeClass('accepted-answer');\r
         $answer.find('.accept-answer').removeClass('on');\r
+        $answer.find('.accept-answer').attr('title', $answer.find('.accept-answer').attr('bn:off'));\r
     },\r
 \r
     remove_comment: function(id) {\r
@@ -651,7 +653,7 @@ function pickedTags(){
                 new_tag.addClass('deletable-tag');\r
                 var tag_link = $('<a></a>');\r
                 tag_link.attr('rel','tag');\r
-                tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname);\r
+                tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname + '/');\r
                 tag_link.html(tagname);\r
                 var del_link = $('<img></img>');\r
                 del_link.addClass('delete-icon');\r