Commit 71885860e35f30648a9b503d14bfbb2fe4c1cab5
Exists in
master
and in
10 other branches
Merge branch 'fix-search' into 'master'
Fix #60 - Search input See merge request !14
Showing
2 changed files
with
13 additions
and
2 deletions
Show diff stats
js/main.js
... | ... | @@ -131,8 +131,15 @@ $.getJSON(noosferoAPI) |
131 | 131 | |
132 | 132 | $( "#search-input" ).autocomplete({ |
133 | 133 | source: availableTags, |
134 | - select: function( event, ui ) { display_proposal(ui.item['value' ].replace('#','')); }, | |
135 | - appendTo: '#search-input-container' | |
134 | + select: function( event, ui ) { | |
135 | + updateHash(ui.item.value); | |
136 | + return false; | |
137 | + }, | |
138 | + appendTo: '#search-input-container', | |
139 | + messages: { | |
140 | + noResults: '', | |
141 | + results: function() {} | |
142 | + } | |
136 | 143 | }); |
137 | 144 | |
138 | 145 | ... | ... |