Skip to content

Commit

Permalink
Search bar autofocuses on click
Browse files Browse the repository at this point in the history
  • Loading branch information
andey committed Jan 28, 2013
1 parent d1f1f45 commit 4aefb44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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.