]> 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 658ac996360697a95a5f12c946059c0af5d34174..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