Permalink
Browse files

Apigen: added autofocus to search field

  • Loading branch information...
1 parent d8d3bc0 commit 1fc735511df5e4e34ebba2e66f5665a79d43fa98 @dg dg committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/ApiGen/templates/@layout.latte
@@ -129,7 +129,7 @@
<input type="hidden" name="cx" value="{$config->googleCseId}">
<input type="hidden" name="ie" value="UTF-8">
<input type="hidden" name="more" value="{$config->googleCseLabel}" n:if="$config->googleCseLabel">
- <input type="text" name="q" class="text">
+ <input type="text" name="q" class="text" {if $active === overview}autofocus{/if}>
<input type="submit" value="Search">
</form>

0 comments on commit 1fc7355

Please sign in to comment.