mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-08 01:42:29 +01:00
fixes #1315 filter on tags no longer cares about case
* searching "Pa" will find both "Pasta" and "pasta" * the searched word can be "included" in the result, not only "starting with". "ta" will find "pasta". Thanks to @dawsk-2021 in issue #1320
This commit is contained in:
1 parent
a9f4449f4b
commit
82f6371955
1 file changed
+2
-2
@@ -795,9 +795,9 @@ function isSearched(tagBox, stringSearch) {
|
||||
}
|
||||
|
||||
function isDataSearched(tagObj) {
|
||||
let name = tagObj.name;
|
||||
let name = tagObj.name.toLowerCase();
|
||||
let stringSearch = $("#search-tag .search-input").val();
|
||||
if (name.startsWith(stringSearch.toLowerCase())) {
|
||||
if (name.includes(stringSearch.toLowerCase())) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user