Also filter gallery items when searching for recipes (references #147)

This commit is contained in:
Bernd Bestel
2019-03-05 19:17:10 +01:00
parent 3a1c5efcfd
commit 7f2942d414
3 changed files with 13 additions and 6 deletions

View File

@@ -64,3 +64,11 @@ GetFileExtension = function(pathOrFileName)
{
return pathOrFileName.split(".").pop();
}
$.extend($.expr[":"],
{
"contains_case_insensitive": function(elem, i, match, array)
{
return (elem.textContent || elem.innerText || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
}
});