Merge pull request #2299 from Happy0/autocomplete_cache

Looks like I accidentally removed a couple of niklasf's changes in my…
pull/2301/head
Thibault Duplessis 2016-10-04 11:05:59 +02:00 committed by GitHub
commit ffaf15d918
1 changed files with 6 additions and 2 deletions

View File

@ -52,10 +52,14 @@ $(function() {
// We fall back to every site user after 3 letters of the username have been entered
// and there are no matches in the forum thread participants
$.ajax({
url: "/player/autocomplete?term=" + term,
url: "/player/autocomplete",
data: {
term: term
},
success: function(candidateUsers) {
callback(searchCandidates(term, candidateUsers));
}
},
cache: true
});
} else {
callback([]);