This commit is contained in:
KONE SOREL 2026-01-03 11:48:57 +00:00
parent 8eb9ec3d41
commit 04e6ce5c55

View File

@ -616,7 +616,6 @@ $activeChildId = $menuData['child'];
<!-- Service Worker Registration --> <!-- Service Worker Registration -->
<script src="/Js/sw-register.js?ver=2025.12.31.00"></script> <script src="/Js/sw-register.js?ver=2025.12.31.00"></script>
<script> <script>
// CORRECTION URGENTE - FORCE LE BON MENU // CORRECTION URGENTE - FORCE LE BON MENU
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
@ -681,13 +680,17 @@ $activeChildId = $menuData['child'];
}); });
</script> </script>
<script> <script>
document.addEventListener('DOMContentLoaded', function () {
// Intercepter l'ouverture de tous les modals Bootstrap
document.addEventListener('show.bs.modal', function (event) { document.addEventListener('show.bs.modal', function (event) {
const modal = event.target; const modal = event.target;
if (modal && modal.parentNode !== document.body) { if (modal && modal.parentNode !== document.body) {
document.body.appendChild(modal); // déplace le modal directement sous <body> document.body.appendChild(modal); // déplacer le modal sous <body>
} }
}); });
});
</script> </script>
</body> </body>
</html> </html>