diff --git a/Js/fonctions.js b/Js/fonctions.js index 6c42779..a76f36f 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1099,18 +1099,24 @@ function consulter_college(idCollege) } } -function pop_consulter_tableau_prestation() -{ +function pop_consulter_tableau_prestation() { $.ajax({ - url: $("#racineWeb").val()+"Ajaxconsultertableauprestation/", - type : 'post', - error: function(errorData) { + url: $("#racineWeb").val() + "Ajaxconsultertableauprestation/", + type: 'post', + error: function(errorData) { + // Optionnel : gestion d'erreur }, success: function(data) { $("#div_tableau_prestation").html(data); }, complete: function() { - $("#btn_pop").click(); + // Déplacer le modal sous avant ouverture + const modal = document.getElementById("poptableauprestation"); + if (modal && modal.parentNode !== document.body) { + document.body.appendChild(modal); + } + // Ouvrir le modal via le bouton caché + document.getElementById("btn_pop").click(); } - }); + }); } \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index d50d2fd..7d7997b 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -595,7 +595,7 @@ $activeChildId = $menuData['child']; - +