Search function searches in names and description

This commit is contained in:
Diego Najar 2019-05-26 23:08:01 +02:00
parent b9f190ec88
commit 787538e1ca
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ $(document).ready(function() {
$(".searchItem").each( function() { $(".searchItem").each( function() {
var item = $(this); var item = $(this);
item.hide(); item.hide();
item.children(".searchText").each( function() { item.find(".searchText").each( function() {
var element = $(this).text().toLowerCase(); var element = $(this).text().toLowerCase();
if (element.indexOf(textToSearch)!=-1) { if (element.indexOf(textToSearch)!=-1) {
item.show(); item.show();