]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_edit.html
no more "bellow"
[osqa.git] / forum / skins / default / templates / question_edit.html
index 2fec6c04ac2b48dfccf756ca5f82b444c73a3066..bcc1d48340185f5e5be47ba0869efcc0795983eb 100644 (file)
@@ -26,8 +26,7 @@
             });
             
             //Tags autocomplete action
-            var tags = {{ tags|safe }};
-               $("#id_tags").autocomplete(tags, {
+               $("#id_tags").autocomplete("/matching_tags", {
                        matchContains: true,
                 max: 20,
                 multiple: true,
                 highlightItem: true,
                 scroll: true,
                 scrollHeight: 300,
-                       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];
                 }
                 
             });