de
This commit is contained in:
@@ -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 <body> 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();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user