]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/osqa.main.js
Bugfix for Jira-471
[osqa.git] / forum / skins / default / media / js / osqa.main.js
index f97f1cdded40462d80e9ae481081ec30f33e5842..43120b252980a00c32c340fd71627b2c2f7b6ccf 100644 (file)
@@ -71,7 +71,7 @@ var response_commands = {
         });\r
     },\r
 \r
-    insert_comment: function(post_id, comment_id, comment, username, profile_url, delete_url, edit_url) {\r
+    insert_comment: function(post_id, comment_id, comment, username, profile_url, delete_url, edit_url, convert_url) {\r
         var $container = $('#comments-container-' + post_id);\r
         var skeleton = $('#new-comment-skeleton-' + post_id).html().toString();\r
 \r
@@ -80,7 +80,8 @@ var response_commands = {
                 .replace(new RegExp('%USERNAME%', 'g'), username)\r
                 .replace(new RegExp('%PROFILE_URL%', 'g'), profile_url)\r
                 .replace(new RegExp('%DELETE_URL%', 'g'), delete_url)\r
-                .replace(new RegExp('%EDIT_URL%', 'g'), edit_url);\r
+                .replace(new RegExp('%EDIT_URL%', 'g'), edit_url)\r
+                .replace(new RegExp('%CONVERT_URL%', 'g'), convert_url);\r
 \r
         $container.append(skeleton);\r
 \r
@@ -264,6 +265,7 @@ function process_ajax_response(data, evt, callback) {
         for (var command in data.commands) {\r
             response_commands[command].apply(null, data.commands[command])\r
 \r
+\r
         }\r
 \r
         if (data['message'] != undefined) {\r
@@ -658,7 +660,7 @@ function pickedTags(){
                 tag_link.html(tagname);\r
                 var del_link = $('<img></img>');\r
                 del_link.addClass('delete-icon');\r
-                del_link.attr('src', mediaUrl('/media/images/close-small-dark.png'));\r
+                del_link.attr('src', mediaUrl('media/images/close-small-dark.png'));\r
 \r
                 setupTagDeleteEvents(del_link, to_target, tagname, reason, true);\r
 \r