mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
search field selected
This commit is contained in:
parent
e38e46ecdb
commit
04b589420e
2 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
<div id="search-form" class="messages info">
|
<div id="search-form" class="messages info">
|
||||||
<form method="get" action="index.php">
|
<form method="get" action="index.php">
|
||||||
<input type="hidden" name="view" value="search"></input>
|
<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>
|
<input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
|
@ -10,6 +10,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$("#search").click(function(){
|
$("#search").click(function(){
|
||||||
closeSearch();
|
closeSearch();
|
||||||
|
$('#searchfield').focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#search-form-close").click(function(){
|
$("#search-form-close").click(function(){
|
||||||
|
|
Loading…
Reference in a new issue