This commit is contained in:
James Cole
2018-10-28 19:17:33 +01:00
parent 400219a9fc
commit 4152179f10
9 changed files with 38 additions and 34 deletions

View File

@@ -367,7 +367,7 @@ function createAutoComplete(input, URI) {
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: {
url: URI,
url: URI + '?uid=' + uid,
filter: function (list) {
return $.map(list, function (name) {
return {name: name};
@@ -375,7 +375,7 @@ function createAutoComplete(input, URI) {
}
},
remote: {
url: URI + '?search=%QUERY',
url: URI + '?search=%QUERY&uid=' + uid,
wildcard: '%QUERY',
filter: function (list) {
return $.map(list, function (name) {