Set autofocus on the search box in the header

As a result the big search box is a little bit useless as it is not
autofocused anymore.
This commit is contained in:
Mateusz Piotrowski 2017-10-09 15:44:07 +02:00 committed by Piotr Dobrowolski
parent 60ec3238ff
commit 6204259990
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<form action="/search"> <form action="/search">
<div class="input-group input-group-lg"> <div class="input-group input-group-lg">
<input type="text" class="form-control" name="q" placeholder="search term" autofocus> <input type="text" class="form-control" name="q" placeholder="search term">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button> <button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span> </span>

View File

@ -32,7 +32,7 @@
<form class="navbar-form navbar-right" role="search" action="/search"> <form class="navbar-form navbar-right" role="search" action="/search">
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q"> <input type="text" class="form-control" placeholder="Search" name="q" autofocus>
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button> <button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span> </span>