ff
This commit is contained in:
parent
8eb9ec3d41
commit
04e6ce5c55
|
|
@ -616,7 +616,6 @@ $activeChildId = $menuData['child'];
|
|||
<!-- Service Worker Registration -->
|
||||
<script src="/Js/sw-register.js?ver=2025.12.31.00"></script>
|
||||
|
||||
|
||||
<script>
|
||||
// CORRECTION URGENTE - FORCE LE BON MENU
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
|
@ -681,13 +680,17 @@ $activeChildId = $menuData['child'];
|
|||
});
|
||||
</script>
|
||||
<script>
|
||||
document.addEventListener('show.bs.modal', function (event) {
|
||||
const modal = event.target;
|
||||
if (modal && modal.parentNode !== document.body) {
|
||||
document.body.appendChild(modal); // déplace le modal directement sous <body>
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Intercepter l'ouverture de tous les modals Bootstrap
|
||||
document.addEventListener('show.bs.modal', function (event) {
|
||||
const modal = event.target;
|
||||
if (modal && modal.parentNode !== document.body) {
|
||||
document.body.appendChild(modal); // déplacer le modal sous <body>
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user