X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2c3ba81e19fd6d84ab208ad90a48fd81e4780c29..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 %}
- {% trans "Ask a question" %} + {% trans "Ask a question" %}
{% csrf_token %} - {% if not request.user.is_authenticated %} + {% if not request.user.is_authenticated %}
{% trans "You are welcome to start submitting your question anonymously." %}

{% blocktrans %} @@ -109,10 +99,10 @@ {% if not request.user.email_valid_and_can_ask %}

{% blocktrans %}Remember, your question will not be published until you validate your email.{% endblocktrans %} - {% trans "Send me a validation link." %} + {% trans "Send me a validation link." %}
{% endif %} - {% endif %} + {% endif %}

{{ form.title }} {{ form.title.errors }}