Changeset 0.25.4 (#164)
This commit is contained in:
@@ -469,11 +469,9 @@ async function saveGrant(resourceType, resourceId) {
|
||||
// ── Admin Listeners (extracted from initListeners) ──
|
||||
|
||||
function _initAdminListeners() {
|
||||
// Admin panel navigation (elements may not exist for non-admin users)
|
||||
document.getElementById('adminBackBtn')?.addEventListener('click', UI.closeAdmin);
|
||||
document.querySelectorAll('.admin-cat').forEach(btn => {
|
||||
btn.addEventListener('click', () => UI.switchAdminCategory(btn.dataset.cat));
|
||||
});
|
||||
// Back button and category tab navigation are handled by the inline
|
||||
// script in admin.html (sessionStorage return URL + location.replace).
|
||||
// Only wire up section-specific action handlers here.
|
||||
document.getElementById('adminSaveSettings')?.addEventListener('click', handleSaveAdminSettings);
|
||||
|
||||
// Admin — users
|
||||
|
||||
Reference in New Issue
Block a user