mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-11 13:47:05 +02:00
fix mobile toggle auto close after click
This commit is contained in:
@@ -350,6 +350,13 @@ function showSection(sectionId) {
|
||||
if (sectionId === 'settingsSection') {
|
||||
loadSettings();
|
||||
}
|
||||
|
||||
// Close navbar on mobile when clicking a menu item
|
||||
let navbar = document.getElementById('navbarSupportedContent');
|
||||
if (navbar.classList.contains('show')) {
|
||||
let navbarToggler = document.querySelector('.navbar-toggler');
|
||||
navbarToggler.click();
|
||||
}
|
||||
}
|
||||
|
||||
//*******************************************************************
|
||||
|
||||
Reference in New Issue
Block a user