button fixed

This commit is contained in:
nmemmert committed 2025-07-27 22:19:08 +00:00
1 parent b40e5136a1
commit fb879b1a23
3 files changed
+51 -28

No files matched your search

+7 -9
View File
@@ -99,15 +99,13 @@ function showAdmin() {
});
// Set default tab to tabWords and enable tab buttons
setTimeout(() => {
document.querySelectorAll('#adminTabs button').forEach(btn => btn.disabled = false);
if (typeof window.switchTab === 'function') {
window.switchTab("tabWords");
console.log("✅ Default tab set to tabWords");
} else {
console.error("switchTab function not available");
}
}, 100);
document.querySelectorAll('#adminTabs button').forEach(btn => btn.disabled = false);
if (typeof window.switchTab === 'function') {
window.switchTab("tabWords");
console.log("✅ Default tab set to tabWords");
} else {
console.error("switchTab function not available");
}
} else {
console.error("Admin panel not found");
}