From 948e6c0ceb133012df0f6a2c8d892324d5c73526 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Sat, 3 Jan 2026 09:53:26 +0000 Subject: [PATCH] v --- Js/fonctions.js | 12 ++++++++++++ Vue/gabarit.php | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/Js/fonctions.js b/Js/fonctions.js index 2a8d9f8..3018bde 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -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(); +} diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 288430d..4d74b8b 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -680,6 +680,14 @@ $activeChildId = $menuData['child']; }, 1000); // Attendre 1s que tout soit initialisé }); +