From 77269fa65c4bc1dc3d75495e19ef785a80d75ef2 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 16 Feb 2026 03:21:43 +0000 Subject: [PATCH] Autosave: 20260216-032143 --- assets/js/main.js | 16 ++++++++++++++++ requests.log | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/assets/js/main.js b/assets/js/main.js index 7d28547..834da24 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -2306,6 +2306,22 @@ document.addEventListener('DOMContentLoaded', () => { btn.style.backgroundColor = '#2b2d31'; btn.style.border = '1px solid #4e5058'; } + + // Refresh sidebar channels and members + if (typeof loadRoles === 'function') loadRoles(); + + fetch(window.location.href) + .then(resp => resp.text()) + .then(html => { + const parser = new DOMParser(); + const doc = parser.parseFromString(html, 'text/html'); + const newSidebar = doc.getElementById('sidebar-channels-list'); + const currentSidebar = document.getElementById('sidebar-channels-list'); + if (newSidebar && currentSidebar) { + currentSidebar.innerHTML = newSidebar.innerHTML; + } + }) + .catch(err => console.error('Error refreshing sidebar:', err)); } else { alert(data.error || 'Failed to toggle role'); } diff --git a/requests.log b/requests.log index a721280..8773bb0 100644 --- a/requests.log +++ b/requests.log @@ -160,3 +160,8 @@ 2026-02-16 03:16:19 - GET /index.php?server_id=1&channel_id=17 - POST: [] 2026-02-16 03:16:26 - GET /index.php?server_id=1&channel_id=17 - POST: [] 2026-02-16 03:17:11 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 03:20:43 - GET /?fl_project=38443 - POST: [] +2026-02-16 03:21:26 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 03:21:33 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 03:21:35 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 03:21:38 - GET /index.php?server_id=1&channel_id=17 - POST: []