$("#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) {
*/
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];
}
});
<p class="title-desc">
{{ form.tags.help_text }}
</p>
+
+ {% if form.captcha %}
+ <div class="question-captcha" style="float: left">
+ {{ form.captcha.errors }}
+ {{ form.captcha }}
+ </div>
+ <div class="clear"></div>
+ {% endif %}
+
{% if not request.user.is_authenticated %}
<input name="ask" type="button" value="{% trans "Login/signup to post your question" %}" class="submit" onclick="submitClicked(event, this.form)"/>
{% else %}