mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 10:50:07 +00:00
Autofocus on search input box
This commit is contained in:
parent
708e0da5a1
commit
c9389cb888
|
@ -219,7 +219,7 @@
|
||||||
<form class="navbar-form navbar-right form" action="{{ url_for('home') }}" method="get">
|
<form class="navbar-form navbar-right form" action="{{ url_for('home') }}" method="get">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<input type="text" class="form-control" name="q" placeholder="{{ search_placeholder }}" value="{{ search["term"] if search is defined else '' }}">
|
<input type="text" class="form-control" name="q" placeholder="{{ search_placeholder }}" value="{{ search["term"] if search is defined else '' }}" autofocus>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<select class="form-control" title="Filter" data-width="120px" name="f">
|
<select class="form-control" title="Filter" data-width="120px" name="f">
|
||||||
|
@ -291,7 +291,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control search-bar" name="q" placeholder="{{ search_placeholder }}" value="{{ search['term'] if search is defined else '' }}" />
|
<input type="text" class="form-control search-bar" name="q" placeholder="{{ search_placeholder }}" value="{{ search['term'] if search is defined else '' }}" autofocus />
|
||||||
<div class="input-group-btn search-btn">
|
<div class="input-group-btn search-btn">
|
||||||
<button class="btn btn-primary" type="submit">
|
<button class="btn btn-primary" type="submit">
|
||||||
<i class="fa fa-search fa-fw"></i>
|
<i class="fa fa-search fa-fw"></i>
|
||||||
|
|
Loading…
Reference in a new issue