Explorar o código

Autofocus search field if width more 992px

andrey1s %!s(int64=10) %!d(string=hai) anos
pai
achega
5f431c77e1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Packagist/WebBundle/Resources/public/js/search.js

+ 4 - 0
src/Packagist/WebBundle/Resources/public/js/search.js

@@ -156,4 +156,8 @@
             $('#search_query_query').focus();
         }
     });
+
+    if ($(document).width() >= 992) {
+        $('#search_query_query').focus();
+    }
 }(jQuery));