Skip to content

Commit

Permalink
Improve javascript listening on search form
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Jan 23, 2014
1 parent 86fc51e commit e1bd214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/search.js.coffee
Expand Up @@ -21,7 +21,8 @@

# Search tabs
# -----------------------------------------------------
activate_search_form = (search_form) ->
$(document).on 'click', '#search .tabs a', ->
search_form = $(this).data('search-form')
# Hide all
$('#search .search_form').hide()
$('#search .tabs li a').removeClass('active')
Expand Down Expand Up @@ -49,7 +50,4 @@

return

$("#search .tabs a").click ->
activate_search_form($(this).data('search-form'))

) jQuery

0 comments on commit e1bd214

Please sign in to comment.