v
This commit is contained in:
parent
c845faf485
commit
4f83b4a4be
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user