Ver Fonte

Enable autofocus on dev homepage

Jordi Boggiano há 7 anos atrás
pai
commit
57603289b8
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Packagist/WebBundle/Resources/public/js/search.js

+ 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(