v
This commit is contained in:
parent
c845faf485
commit
4f83b4a4be
|
|
@ -97,4 +97,17 @@ foreach ($modals as $id => $cfg):
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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é
|
}, 1000); // Attendre 1s que tout soit initialisé
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user