diff --git a/apps.md b/apps.md index 088b178a..535eace8 100644 --- a/apps.md +++ b/apps.md @@ -169,7 +169,7 @@ $(document).ready(function () { var valThis = $('#filter-app-cards').val().toLowerCase(); $('.app-card').each(function(){ var text = $(this).find('h3').text().toLowerCase(); - (text.indexOf(valThis) == 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); + (text.indexOf(valThis) >= 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); }); (filters.indexOf("working") == -1) ?$('#community-app-list-warrant').hide():$('#community-app-list-warrant').show(); } diff --git a/apps_ar.md b/apps_ar.md index 8ca360a5..d3b929bd 100644 --- a/apps_ar.md +++ b/apps_ar.md @@ -166,7 +166,7 @@ $(document).ready(function () { var valThis = $('#filter-app-cards').val().toLowerCase(); $('.app-card').each(function(){ var text = $(this).find('h3').text().toLowerCase(); - (text.indexOf(valThis) == 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); + (text.indexOf(valThis) >= 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); }); (filters.indexOf("working") == -1) ?$('#community-app-list-warrant').hide():$('#community-app-list-warrant').show(); } diff --git a/apps_fr.md b/apps_fr.md index 84aa2c1b..ea2df5b7 100644 --- a/apps_fr.md +++ b/apps_fr.md @@ -166,7 +166,7 @@ $(document).ready(function () { var valThis = $('#filter-app-cards').val().toLowerCase(); $('.app-card').each(function(){ var text = $(this).find('h3').text().toLowerCase(); - (text.indexOf(valThis) == 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); + (text.indexOf(valThis) >= 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); }); (filters.indexOf("working") == -1) ?$('#community-app-list-warrant').hide():$('#community-app-list-warrant').show(); } diff --git a/apps_it.md b/apps_it.md index 274acec3..236439c3 100644 --- a/apps_it.md +++ b/apps_it.md @@ -169,7 +169,7 @@ $(document).ready(function () { var valThis = $('#filter-app-cards').val().toLowerCase(); $('.app-card').each(function(){ var text = $(this).find('h3').text().toLowerCase(); - (text.indexOf(valThis) == 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); + (text.indexOf(valThis) >= 0 && $(this).find(filters_text).length > 0) ? $(this).show() : $(this).hide(); }); (filters.indexOf("working") == -1) ?$('#community-app-list-warrant').hide():$('#community-app-list-warrant').show(); }