diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2022-01-09 15:54:45 +0100 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-01-29 10:57:31 -0500 |
commit | 0f58f1d114725fc761d03ba5826f560fd74cbd2f (patch) | |
tree | 59c43cad16eb10bc876a4bc8ddcc23f5f28b9a56 /youtube/templates/base.html | |
parent | f46035c6b6a6abdb3f68481ac2b7f17b8bfa6d8f (diff) | |
download | yt-local-0f58f1d114725fc761d03ba5826f560fd74cbd2f.tar.lz yt-local-0f58f1d114725fc761d03ba5826f560fd74cbd2f.tar.xz yt-local-0f58f1d114725fc761d03ba5826f560fd74cbd2f.zip |
also autofocus search for /results or on error
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates/base.html')
-rw-r--r-- | youtube/templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html index ea0b7dd..b68c250 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -35,7 +35,7 @@ </nav> <form class="form" id="site-search" action="/youtube.com/results"> <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> <!-- options --> <div class="dropdown"> |