mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix issue with search categories not working
This commit is contained in:
1 parent
81ef36574b
commit
199404e8a6
2 files changed
+10
-21
No files matched your search
+7
-7
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user