Ver código fonte

Enable autofocus on dev homepage

Jordi Boggiano 7 anos atrás
pai
commit
57603289b8

+ 1 - 1
src/Packagist/WebBundle/Resources/public/js/search.js

@@ -58,7 +58,7 @@ var search = instantsearch({
 });
 
 var autofocus = false;
-if(location.pathname == "/") {
+if (location.pathname == "/" || location.pathname == "/app_dev.php/") {
     autofocus = true;
 }
 search.addWidget(