2 $.getJSON('/rate', {url
: $('#ponyheadURL').val()}, function(data
) {
7 var tournaments
= new Bloodhound({
8 datumTokenizer
: Bloodhound
.tokenizers
.obj
.nonword('name'),
9 queryTokenizer
: Bloodhound
.tokenizers
.nonword
,
10 prefetch
: '/tournaments'
13 tournaments
.clearPrefetchCache()
14 tournaments
.initialize();
16 $(document
).ready(function() {
17 $('.typeahead-tournaments').typeahead({
21 source
: tournaments
.ttAdapter()