]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
add focus to search form 1316/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 11 Aug 2015 16:07:02 +0000 (18:07 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 11 Aug 2015 16:07:02 +0000 (18:07 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/material/public/js/init.js

index eee3903e862872c760ce1efe295e9306e1c60a3a..fdfda3806a8d50e24ca9e4368fa8c0ac58faaaf3 100755 (executable)
@@ -21,6 +21,7 @@ $(document).ready(function(){
         $(".nav-panels .action").hide(100);
         $(".nav-panel-menu").addClass('hidden');
         $(".nav-panels").css('background', 'white');
+        $("#searchfield").focus();
         return false;
     });
     $('.mdi-navigation-close').click(function(){
@@ -32,4 +33,4 @@ $(document).ready(function(){
         $(".nav-panels").css('background', 'transparent');
         return false;
     });
-});
\ No newline at end of file
+});