also autofocus search for /results or on error
Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
f46035c6b6
commit
0f58f1d114
@ -35,7 +35,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<form class="form" id="site-search" action="/youtube.com/results">
|
<form class="form" id="site-search" action="/youtube.com/results">
|
||||||
<input type="search" name="search_query" class="search-box" value="{{ search_box_value }}"
|
<input type="search" name="search_query" class="search-box" value="{{ search_box_value }}"
|
||||||
{{ "autofocus" if request.path == "/" else "" }} required placeholder="Type to search...">
|
{{ "autofocus" if (request.path in ("/", "/results") or error_message) else "" }} required placeholder="Type to search...">
|
||||||
<button type="submit" value="Search" class="search-button">Search</button>
|
<button type="submit" value="Search" class="search-button">Search</button>
|
||||||
<!-- options -->
|
<!-- options -->
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user