This commit is contained in:
KONE SOREL 2026-01-03 09:53:26 +00:00
parent 345e11837e
commit 948e6c0ceb
2 changed files with 20 additions and 0 deletions

View File

@ -1568,3 +1568,15 @@ function controle_date_avenant()
$("#dateAvenant").readable();
$("#motifavenant").readable();
}
function ouvrirModal(idModal) {
const modal = document.getElementById(idModal);
if (modal && modal.parentNode !== document.body) {
document.body.appendChild(modal); // extrait le modal de son contexte
}
const bsModal = new bootstrap.Modal(modal, {
backdrop: 'static',
keyboard: false
});
bsModal.show();
}

View File

@ -680,6 +680,14 @@ $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>