Fix issue with search categories not working

This commit is contained in:
HighImKevin committed 2026-10-01 06:58:04 -04:00
1 parent 81ef36574b
commit 199404e8a6
2 files changed
+10 -21

No files matched your search

+7 -7
View File
@@ -533,9 +533,9 @@
function updateButtonStates(activeType) {
// Remove active class from all buttons
smartAllBtn.classList.remove('active','button-submit');
smartCoreBtn.classList.remove('active','button-submit');
smartMusicBtn.classList.remove('active','button-submit');
smartBooksBtn.classList.remove('active','button-submit');
smartCoreBtn?.classList.remove('active','button-submit');
smartMusicBtn?.classList.remove('active','button-submit');
smartBooksBtn?.classList.remove('active','button-submit');
if (smartRequestBtn) {
smartRequestBtn.classList.remove('active','button-submit');
@@ -545,13 +545,13 @@
if (activeType === 'all') {
smartAllBtn.classList.add('active','button-submit');
} else if (activeType === 'videos') {
smartCoreBtn.classList.add('active','button-submit');
smartCoreBtn?.classList.add('active','button-submit');
} else if (activeType === 'music') {
smartMusicBtn.classList.add('active','button-submit');
smartMusicBtn?.classList.add('active','button-submit');
} else if (activeType === 'books') {
smartBooksBtn.classList.add('active','button-submit');
smartBooksBtn?.classList.add('active','button-submit');
} else if (activeType === 'request' && smartRequestBtn) {
smartRequestBtn.classList.add('active','button-submit');
smartRequestBtn?.classList.add('active','button-submit');
}
}