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

View File

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