Removing unneccessary code from header.php

Removing unnecessary code from header.php that prevents the dropdown-menus in the nav-bar from closing after another one is opened.
This commit is contained in:
MatykoBr
2025-02-13 20:02:00 +01:00
parent 9a5d61e4bc
commit be554d7457

View File

@@ -598,16 +598,3 @@
</nav>
<div id="clubswitchModal-container"></div>
<div id="stopImpersonateModal-container"></div>
<script>
let headerMenu = document.getElementById('header-menu');
let dropdowns = document.querySelectorAll('.dropdown-toggle');
dropdowns.forEach((dd) => {
dd.addEventListener('click', function(e) {
if (headerMenu.clientWidth < 992) {
var el = this.nextElementSibling;
el.style.display = el.style.display === 'block' ? 'none' : 'block';
}
});
});
</script>