]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_edit.html
now superusers and staff can unsubscribe users subscription.
[osqa.git] / forum / skins / default / templates / question_edit.html
index 2fec6c04ac2b48dfccf756ca5f82b444c73a3066..9207209956dd0a452b03aca86d70534a93643e12 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];
                 }
                 
             });