]> git.mxchange.org Git - friendica.git/commitdiff
autofocus for search input field
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 24 Jun 2017 08:17:16 +0000 (10:17 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 24 Jun 2017 08:17:16 +0000 (10:17 +0200)
view/templates/searchbox.tpl

index 4b1a51f877d7ba4159b88bbb2d184dc50070a2e4..38d282a8c9812849c3a4c73af672a6a4b809590b 100644 (file)
@@ -1,7 +1,7 @@
 <div id="{{$id}}" class="input-group">
         <form action="{{$action_url}}" method="get" >
                 {{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}}
                <select name="search-option" id="search-options">
                        <option value="fulltext">{{$searchoption.0}}</option>