Merge branch 'main' of git.ebene.ovh:ebene/radiantrh

This commit is contained in:
KANE LAZENI 2026-01-03 11:55:44 +00:00
commit 15f3e158f7
2 changed files with 14 additions and 10 deletions

View File

@ -97,4 +97,17 @@ foreach ($modals as $id => $cfg):
</div>
</div>
</div>
<?php endforeach; ?>
<?php endforeach; ?>
<script>
document.addEventListener('DOMContentLoaded', function () {
const observer = new MutationObserver(() => {
document.querySelectorAll('.modal').forEach(m => {
if (m.parentNode !== document.body) {
document.body.appendChild(m);
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
});
</script>

View File

@ -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() {
@ -680,14 +679,6 @@ $activeChildId = $menuData['child'];
}, 1000); // Attendre 1s que tout soit initialisé
});
</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>
}
});
</script>
</body>
</html>