search field selected

This commit is contained in:
tcit 2014-10-04 18:44:18 +02:00
parent e38e46ecdb
commit 04b589420e
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<div id="search-form" class="messages info">
<form method="get" action="index.php">
<input type="hidden" name="view" value="search"></input>
<label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" />
<label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input required placeholder="{% trans "something to search" %}" type="text" name="search" id="searchfield" />
<input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
</form>
</div>

View File

@ -10,6 +10,7 @@ $(document).ready(function() {
$("#search").click(function(){
closeSearch();
$('#searchfield').focus();
});
$("#search-form-close").click(function(){