mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
close #771
This commit is contained in:
parent
d0940ccd21
commit
9890e3a8be
@ -1995,7 +1995,13 @@ $(document).on('input change keyup keypress keydown paste cut', '.search', funct
|
|||||||
$('.search-clear').show();
|
$('.search-clear').show();
|
||||||
// show apps that match search_query and hide apps that don't
|
// show apps that match search_query and hide apps that don't
|
||||||
apps.forEach((app) => {
|
apps.forEach((app) => {
|
||||||
if (app.title.toLowerCase().includes(search_query.toLowerCase())) {
|
if (
|
||||||
|
app.title.toLowerCase().includes(search_query.toLowerCase())
|
||||||
|
|| app.name.toLowerCase().includes(search_query.toLowerCase())
|
||||||
|
|| app.description.toLowerCase().includes(search_query.toLowerCase())
|
||||||
|
|| app.uid.toLowerCase().includes(search_query.toLowerCase())
|
||||||
|
)
|
||||||
|
{
|
||||||
$(`.app-card[data-name="${app.name}"]`).show();
|
$(`.app-card[data-name="${app.name}"]`).show();
|
||||||
} else {
|
} else {
|
||||||
$(`.app-card[data-name="${app.name}"]`).hide();
|
$(`.app-card[data-name="${app.name}"]`).hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user