]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_retag.html
fixes osqa-152: interesting and ignored tags work again. also fixed potential perfor...
[osqa.git] / forum / skins / default / templates / question_retag.html
index 3e073e836e704be0a208011906958686bb62b4ef..04d96f347ec526bd48b56b1b25a201b3f597e5ab 100644 (file)
@@ -9,18 +9,24 @@
         $().ready(function(){
             $("#nav_questions").attr('className',"on");
             //Tags autocomplete action
-            var tags = {{ tags|safe }};
-               $("#id_tags").autocomplete(tags, {
+               $("#id_tags").autocomplete("/matching_tags", {
                 minChars: 1,
                        matchContains: true,
                 max: 20,
                 multiple: true,
                 multipleSeparator: " ",
-                       formatItem: function(row, i, max) {
+                       /*formatItem: function(row, i, max) {
                                return row.n + " ("+ row.c +")";
                        },
                 formatResult: function(row, i, max){
                     return row.n;
+                } */
+                formatItem: function(row, i, max, value) {
+                    return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")";
+                },
+
+                formatResult: function(row, i, max, value){
+                    return row[0];
                 }
                 
             });