X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c07bef148aa59e35fe84e0c0cc8acff2cb5c6ee5..1dcbddebd4c10dd0d6ef25f01ad095c2bf16148e:/forum/skins/default/templates/ask.html diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index 4e64fba..f2b5b53 100644 --- a/forum/skins/default/templates/ask.html +++ b/forum/skins/default/templates/ask.html @@ -33,12 +33,16 @@ }); //Tags autocomplete action - $("#id_tags").autocomplete("/matching_tags/", { + $("#id_tags").autocomplete("{% url matching_tags %}", { minChars: 1, matchContains: true, - max: 20, + max: 10, multiple: true, multipleSeparator: " ", + highlightItem: true, + scroll: true, + scrollHeight: 300, + /* formatItem: function(row, i, max) { @@ -50,11 +54,11 @@ */ formatItem: function(row, i, max, value) { - return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")"; + return row[1] + " (" + row[2] + ")"; }, formatResult: function(row, i, max, value){ - return row[0]; + return row[1]; } }); @@ -90,6 +94,7 @@