Autofocus ticket title if another

This commit is contained in:
Drew DeVault 2019-12-11 08:43:44 -05:00
parent 856ad5b04e
commit 15ea80ab9b
1 changed files with 6 additions and 1 deletions

View File

@ -90,7 +90,10 @@
maxlength="2048"
id="title"
name="title"
value="{{ title or "" }}" />
value="{{ title or "" }}"
{% if another %}
autofocus
{% endif %} />
{{valid.summary("title")}}
</div>
<div class="form-group">
@ -147,7 +150,9 @@
type="text"
placeholder="Search tickets... status:closed label:label order:updated submitter:me"
class="form-control"
{% if not another %}
autofocus
{% endif %}
value="{{ search if search else "" }}" />
</form>
{% if len(tickets) %}