Autosave: 20260216-032143
This commit is contained in:
parent
f20e908050
commit
77269fa65c
@ -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');
|
||||
}
|
||||
|
||||
@ -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: []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user