v
This commit is contained in:
parent
345e11837e
commit
948e6c0ceb
|
|
@ -1568,3 +1568,15 @@ function controle_date_avenant()
|
||||||
$("#dateAvenant").readable();
|
$("#dateAvenant").readable();
|
||||||
$("#motifavenant").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();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -680,6 +680,14 @@ $activeChildId = $menuData['child'];
|
||||||
}, 1000); // Attendre 1s que tout soit initialisé
|
}, 1000); // Attendre 1s que tout soit initialisé
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user