Put focus into search field on initial page load

fixes #6170
This commit is contained in:
Thomas Gelf 2014-05-09 10:57:21 +00:00
parent dcf6b998bf
commit c93564c797
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ $menu = Menu::fromConfig();
?>
<div id="menu" data-base-target="_main">
<form action="<?= $this->href('search') ?>" method="get">
<input type="text" name="q" class="search" placeholder="Search..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
<input type="text" name="q" class="search autofocus" placeholder="Search..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
</form>
<?= $this->partial('parts/menu.phtml', array(
'items' => $menu->getChildren(),