autofocus for search input field

2022.09-rc
Tobias Diekershoff 2017-06-24 10:17:16 +02:00
rodzic 4ab736860c
commit e0c46678e5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
<div id="{{$id}}" class="input-group"> <div id="{{$id}}" class="input-group">
<form action="{{$action_url}}" method="get" > <form action="{{$action_url}}" method="get" >
{{strip}} {{strip}}
<input type="text" name="search" id="search-text" placeholder="{{$search_label}}" value="{{$s}}" /> <input type="text" name="search" id="search-text" placeholder="{{$search_label}}" value="{{$s}}" autofocus />
{{if $searchoption}} {{if $searchoption}}
<select name="search-option" id="search-options"> <select name="search-option" id="search-options">
<option value="fulltext">{{$searchoption.0}}</option> <option value="fulltext">{{$searchoption.0}}</option>