mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
Also filter gallery items when searching for recipes (references #147)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user