Cleanup edit thing

This commit is contained in:
James Cole 2023-06-21 07:39:00 +02:00
parent 9d057b853f
commit 2b78485a61
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -403,6 +403,15 @@ function createAutoComplete(input, URL) {
url: URL + urlParamSplit + 'uid=' + uid,
filter: function (list) {
return $.map(list, function (item) {
if (item.hasOwnProperty('active') && item.active === true) {
return {name: item.name};
}
if (item.hasOwnProperty('active') && item.active === false) {
return;
}
if (item.hasOwnProperty('active')) {
console.log(item.active);
}
return {name: item.name};
});
}
@ -412,6 +421,15 @@ function createAutoComplete(input, URL) {
wildcard: '%QUERY',
filter: function (list) {
return $.map(list, function (item) {
if (item.hasOwnProperty('active') && item.active === true) {
return {name: item.name};
}
if (item.hasOwnProperty('active') && item.active === false) {
return;
}
if (item.hasOwnProperty('active')) {
console.log(item.active);
}
return {name: item.name};
});
}