Browse Source

Fix admin panel close button not working

- Fixed selector to use correct ID 'adminCloseBtn'
- Close button now properly dismisses overlay and returns to edit mode

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
master
HikeMap User 1 month ago
parent
commit
348196fbcc
  1. 2
      index.html

2
index.html

@ -5904,7 +5904,7 @@
document.getElementById('adminTab').addEventListener('click', () => switchTab('admin'));
// Admin overlay close button
const adminCloseBtn = document.querySelector('.admin-panel-overlay .close-btn');
const adminCloseBtn = document.getElementById('adminCloseBtn');
if (adminCloseBtn) {
adminCloseBtn.addEventListener('click', () => {
const adminOverlay = document.querySelector('.admin-panel-overlay');

Loading…
Cancel
Save