Upload files to "js"
This commit is contained in:
parent
4af809e434
commit
823fcdbf55
|
@ -34,9 +34,15 @@ function populateSearchResults(results, selectedOption) {
|
|||
}
|
||||
|
||||
function filterOptions(query, data) {
|
||||
return data.filter(item => item.nome.toLowerCase().includes(query.toLowerCase()));
|
||||
const q = query.toLowerCase();
|
||||
return data.filter(item =>
|
||||
(item.nome || '').toLowerCase().includes(q) ||
|
||||
(item.palina || '').toLowerCase().includes(q) ||
|
||||
(item.targetID || '').toLowerCase().includes(q)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
let allOptions = [];
|
||||
let currentSelectedOption = '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue