Skip to content

Commit

Permalink
fixed bug where search results would populate if search value length …
Browse files Browse the repository at this point in the history
…was zero
  • Loading branch information
egladman committed Jan 28, 2016
1 parent 3bbb38d commit 67bd602
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _assets/js/_search.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ $ ->
isSelected = false
return

$('#search-posts').on 'keyup', () ->
if $('#search-posts').val().length == 0
$('#search-results').css('display', 'none')
else
$('#search-results').css('display', '')
return false

$('.search-submit').hover (->
isSelected = true
$('.search-submit').click () ->
Expand Down

0 comments on commit 67bd602

Please sign in to comment.