X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c07bef148aa59e35fe84e0c0cc8acff2cb5c6ee5..ba9a60ad5002f1d8ea271f030f4ae5f5e898f7c7:/forum/skins/default/templates/ask.html diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index 4e64fba..26f5fae 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]; } }); @@ -124,6 +128,7 @@
{{ form.tags.help_text }}
+ + {% if form.recaptcha %} +