diff --git a/index.html b/index.html index bc1337f..ec60ae1 100644 --- a/index.html +++ b/index.html @@ -5907,7 +5907,11 @@ setTimeout(() => { const adminCloseBtn = document.getElementById('adminCloseBtn'); if (adminCloseBtn) { - adminCloseBtn.addEventListener('click', () => { + console.log('Admin close button found, attaching listener'); + adminCloseBtn.addEventListener('click', (e) => { + console.log('Admin close button clicked'); + e.preventDefault(); + e.stopPropagation(); const adminOverlay = document.querySelector('.admin-panel-overlay'); if (adminOverlay) { adminOverlay.classList.remove('active'); @@ -5917,8 +5921,10 @@ // Switch back to edit tab switchTab('edit'); }); + } else { + console.error('Admin close button not found!'); } - }, 0); + }, 100); // Password dialog document.getElementById('passwordSubmit').addEventListener('click', checkPassword); @@ -6334,7 +6340,7 @@

⚙️ Admin Settings

- +