From 0f3908216a62b827e20936c2d50ba3da67d4f9b7 Mon Sep 17 00:00:00 2001 From: Cohee Date: Fri, 14 Jul 2023 23:11:44 +0300 Subject: [PATCH] #711 Fix excluded tag hiding the character block --- public/scripts/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 55b7568d7..0f1409bef 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -311,7 +311,7 @@ function appendTagToList(listElement, tag, { removable, selectable, action, isGe } if (tag.excluded) { - isGeneralList ? $(tagElement).addClass('excluded') : $(listElement).parent().parent().addClass('hiddenByTag'); + isGeneralList ? $(tagElement).addClass('excluded') : $(listElement).closest('.character_select, .group_select').addClass('hiddenByTag'); } if (selectable) { @@ -329,7 +329,7 @@ function appendTagToList(listElement, tag, { removable, selectable, action, isGe $(listElement).append(tagElement); } -function onTagFilterClick(listElement, characterSelector) { +function onTagFilterClick(listElement, characterSelector) { let excludeTag; if ($(this).hasClass('selected')) { $(this).removeClass('selected');