X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3b5cf11889534f64588a9dabc008e745d2c67c3a..8c29337f201187a1d8aa0110c9faf36b5d4f9219:/forum/skins/default/templates/ask.html diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index 7b34ba4..bb4ad67 100644 --- a/forum/skins/default/templates/ask.html +++ b/forum/skins/default/templates/ask.html @@ -36,9 +36,13 @@ $("#id_tags").autocomplete("/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,22 +54,25 @@ */ 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]; } }); }); - function submitClicked(e) { + function submitClicked(e, f) { if(!(browserTester('chrome') || browserTester('safari'))) { $("input.submit")[0].disabled=true; } window.removeEventListener('beforeunload', beforeUnload, true); + if (f) { + f.submit(); + } } function beforeUnload(e) { @@ -121,6 +128,7 @@ {% trans "toggle preview" %} + {% if settings.WIKI_ON %} {{ form.wiki }} {{ form.wiki.label_tag }} @@ -141,9 +149,9 @@ {{ form.tags.help_text }}

{% if not request.user.is_authenticated %} - + {% else %} - + {% endif %}