Search function searches in names and description
This commit is contained in:
parent
b9f190ec88
commit
787538e1ca
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue