diff --git a/manager/vip/vip_list.php b/manager/vip/vip_list.php
index 96c5e6e5e..1dc7f991c 100644
--- a/manager/vip/vip_list.php
+++ b/manager/vip/vip_list.php
@@ -37,14 +37,12 @@ $table = "{$fg['vip_list_table']} AS a LEFT JOIN {$fg['vip_category_table']} AS
$group_name = getVipCatName();
$show_all = isset($_REQUEST['show_all_cat']) ? true : false;
foreach ($group_name as $row) { // VIP구분 가지고 와서 뿌려주기
- // 비활성 카테고리 숨김
- if ($row['gr_used'] == 0 && !$show_all) continue;
$inactive_class = ($row['gr_used'] == 0) ? ' inactive-cat' : '';
- $display_style = ($row['gr_used'] == 0 && !$show_all) ? 'display: none;' : '';
+ $display_style = ($row['gr_used'] == 0) ? 'display: none;' : '';
?>
- >
+ style="=$display_style?>">
-
+
@@ -376,12 +374,10 @@ $table = "{$fg['vip_list_table']} AS a LEFT JOIN {$fg['vip_category_table']} AS
const btn = event.target;
const showAll = !btn.getAttribute('data-show-all') || btn.getAttribute('data-show-all') === 'false';
- // UI 즉시 업데이트
- const categoryLabels = document.querySelectorAll('.category-label');
- categoryLabels.forEach(label => {
- if (label.classList.contains('inactive-cat')) {
- label.style.display = showAll ? 'inline-block' : 'none';
- }
+ // 비활성 카테고리 input과 label 토글
+ const inactiveElements = document.querySelectorAll('.inactive-cat');
+ inactiveElements.forEach(elem => {
+ elem.style.display = showAll ? 'inline-block' : 'none';
});
// 버튼 텍스트 업데이트