comment and photos section in moderation portal, fixed comments count, username cookie #12

Merged
lukas.uptmoor merged 9 commits from dev/patrick into main 2026-04-29 08:16:08 +02:00
Showing only changes of commit 5b77b0b524 - Show all commits

View File

@@ -513,13 +513,25 @@ $counts['total'] = count($all_contributions);
// Current Status Filter // Current Status Filter
let currentFilter = 'all'; let currentFilter = 'all';
// Restores active Tab after Page Reload
const savedTab = sessionStorage.getItem('admin_active_tab');
if (savedTab) {
// Delays to ensure DOM is ready
setTimeout(function () {
const tabBtn = document.querySelector('.page-tab[onclick*="' + savedTab + '"]');
if (tabBtn) tabBtn.click();
}, 100);
}
// ============================================================= // =============================================================
// Page Tab Navigation // Page Tab Navigation
// ============================================================= // =============================================================
function showPageTab(tabName) { function showPageTab(tabName) {
// Hides all Tab Contents // Saves active Tab for Persistence after Reload
sessionStorage.setItem('admin_active_tab', tabName);
document.querySelectorAll('.page-tab-content').forEach(function (el) { document.querySelectorAll('.page-tab-content').forEach(function (el) {
el.style.display = 'none'; el.style.display = 'none';
}); });