X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ce1fb7f146e5524565ad7cc003691d10134f2158..dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff:/forum/skins/default/templates/ask.html diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index ec5b1a8..0c7b255 100644 --- a/forum/skins/default/templates/ask.html +++ b/forum/skins/default/templates/ask.html @@ -22,7 +22,7 @@ $('#editor').TextAreaResizer(); //toggle preview of editor - //todo remove copy-paste + //todo remove copy-paste var display = true; var txt = "[{% trans "hide preview" %}]"; $('#pre-collapse').text(txt); @@ -34,9 +34,9 @@ }); //Tags autocomplete action - $("#id_tags").autocomplete("{% url matching_tags %}", { + $("#id_tags").autocomplete('{% url "matching_tags" %}', { minChars: 1, - matchContains: true, + matchContains: true, max: 10, multiple: true, multipleSeparator: " ", @@ -44,16 +44,6 @@ scroll: true, scrollHeight: 300, - - /* - 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] + " (" + row[2] + ")"; }, @@ -83,20 +73,20 @@ } window.addEventListener('beforeunload', beforeUnload, true); - var related_questions_url = "{% url related_questions %}"; + var related_questions_url = '{% url "related_questions" %}'; {% endblock %} {% block content %}