This commit is contained in:
KONE SOREL 2026-01-03 11:54:19 +00:00
parent c845faf485
commit 4f83b4a4be
2 changed files with 14 additions and 14 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

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