gitlab-org--gitlab-foss/app/assets/javascripts/search_autocomplete.js.coffee
2013-05-02 14:51:47 +03:00

8 lines
206 B
CoffeeScript

class SearchAutocomplete
constructor: (json) ->
$("#search").autocomplete
source: json
select: (event, ui) ->
location.href = ui.item.url
@SearchAutocomplete = SearchAutocomplete