]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
search field selected
authortcit <tcit@tcit.fr>
Sat, 4 Oct 2014 16:44:18 +0000 (18:44 +0200)
committertcit <tcit@tcit.fr>
Sat, 4 Oct 2014 16:44:18 +0000 (18:44 +0200)
themes/baggy/_search-form.twig
themes/default/js/popupForm.js

index b8ac3bfa6576db0efba9ceaf9fba262e148c1be9..073291f4c32fc47afecb61185102caadb22e1f1a 100644 (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>
\ No newline at end of file
index 06be3f0cdced6fd923d72af5b3e9d1cdb49e6641..a32e6e70aa9f0471d659f169c368a43598ea2642 100644 (file)
@@ -10,6 +10,7 @@ $(document).ready(function() {
 
     $("#search").click(function(){
         closeSearch();
+        $('#searchfield').focus();
     });
 
     $("#search-form-close").click(function(){