Skip to content

Instantly share code, notes, and snippets.

@DrewDahlman
Created February 26, 2014 02:21
Show Gist options
  • Save DrewDahlman/9222256 to your computer and use it in GitHub Desktop.
Save DrewDahlman/9222256 to your computer and use it in GitHub Desktop.
$ingredientSearch.on 'blur', (event) =>
if (!$(document.activeElement).is($('.tt-dropdown-menu')))
$window.unbind 'keydown'
$ingredientSearch.attr('placeholder',SouthernComfort.translations.drink_maker.add_ingredient)
$("#ingredient_search_area .tt-hint").html('')
$ingredientSearch.val('')
$("#search_icon").html('S').removeClass('active')
setTimeout =>
$("#ingredient_search_area .tt-query").typeahead("setQuery","")
$("#ingredient_search_area .tt-query").removeClass('disabled')
,350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment