Skip to content

Instantly share code, notes, and snippets.

@a-ignatov-parc
Last active December 21, 2015 10:59
Show Gist options
  • Save a-ignatov-parc/6295622 to your computer and use it in GitHub Desktop.
Save a-ignatov-parc/6295622 to your computer and use it in GitHub Desktop.
$scope.highlightSearchResult = (->
highlightSearchResultIndex = 0
(entity) ->
$('.is-selected').removeClass 'is-selected'
entity
.find('.g-highlight')
.addClass('is-selected')
)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment