Permalink
Browse files

Search bar autofocuses on click

  • Loading branch information...
andey committed Jan 28, 2013
1 parent d1f1f45 commit 4aefb442c18e13db6ce4070f8f8d3a99d325ab40
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/assets/javascripts/layout.js.coffee
@@ -1,4 +1,5 @@
jQuery ->
$("#li-navbar-search-button a").click ->
$("#li-navbar-search-button").addClass("hidden")
- $("#li-navbar-search-form").removeClass("hidden")
+ $("#li-navbar-search-form").removeClass("hidden")
+ $("#li-navbar-search-form .search-query").focus()

0 comments on commit 4aefb44

Please sign in to comment.