mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fixed search and fav filter for new flex char list
This commit is contained in:
@ -3895,7 +3895,7 @@ $(document).ready(function () {
|
||||
})
|
||||
} else {
|
||||
$(selector).each(function () {
|
||||
const isValidSearch = $(this).children(".ch_name").text().toLowerCase().includes(searchValue);
|
||||
const isValidSearch = $(this).children(".flex-container").children(".ch_name").text().toLowerCase().includes(searchValue);
|
||||
|
||||
if (isValidSearch) {
|
||||
if (selectedTagId && !isElementTagged(this, selectedTagId)) {
|
||||
@ -3922,8 +3922,8 @@ $(document).ready(function () {
|
||||
const selector = ['#rm_print_characters_block .character_select', '#rm_print_characters_block .group_select'].join(',');
|
||||
if (filterByFav) {
|
||||
$(selector).each(function () {
|
||||
if ($(this).children(".ch_fav").length !== 0) {
|
||||
$(this).children(".ch_fav").val().toLowerCase().includes(true)
|
||||
if ($(this).children(".flex-container").children(".ch_fav").length !== 0) {
|
||||
$(this).children(".flex-container").children(".ch_fav").val().toLowerCase().includes(true)
|
||||
? $(this).show()
|
||||
: $(this).hide();
|
||||
}
|
||||
|
Reference in New Issue
Block a user