This commit is contained in:
KANE LAZENI 2026-01-16 17:10:56 +00:00
parent 6d1c527497
commit e7d987311e
2 changed files with 23 additions and 31 deletions

View File

@ -18551,40 +18551,32 @@ function valider_rdv()
donnees += '&dateRdvAccordee='+dateRdvAccordee+'&heureRdvAccordee='+heureRdvAccordee; donnees += '&dateRdvAccordee='+dateRdvAccordee+'&heureRdvAccordee='+heureRdvAccordee;
donnees += '&motifReponseRdv='+motifReponseRdv; donnees += '&motifReponseRdv='+motifReponseRdv;
alert("valider_rdv => "+donnees);
return;
v_msg="Confirmez-vous la modification de votre demande?"; v_msg="Confirmez-vous la modification de votre demande?";
v_msgEng="Do you confirm the modification of your request?"; v_msgEng="Do you confirm the modification of your request?";
confirm_ebene_sweet(v_msg, v_msgEng) if(confirm_ebene(v_msg, v_msgEng))
.then((isConfirmed) => { {
if (isConfirmed) { vLink = "Ajaxdemanderdv/valider/";
// L'utilisateur a confirmé $.ajax({
type: "POST",
vLink = "Ajaxdemanderdv/valider/"; url: $("#racineWeb").val()+vLink,
data:donnees,
$.ajax({ error: function(errorData) {
type: "POST", },
url: $("#racineWeb").val()+vLink, success: function(data) {
data:donnees, alert(data);
error: function(errorData) { $('#div_test_gabarit').html(data);
},
success: function(data) {
//alert(data);
// $('#div_test_gabarit').html(data);
},
complete: function() {
historique_rdv();
}
}); },
complete: function() {
} else { // historique_rdv();
// L'utilisateur a annulé }
console.log("Confirmation refusée");
} });
}); }
} }

View File

@ -263,7 +263,7 @@ actesHarmonises : <?= $_SESSION['p_actesHarmonises'] ?>
<script src="Js/datepicker-fr.js"></script> <script src="Js/datepicker-fr.js"></script>
<?php endif; ?> <?php endif; ?>
<script src="Js/fonctions.js?ver=2026.01.16.02"></script> <script src="Js/fonctions.js?ver=2026.01.16.03"></script>
<script src="Bootstrap/js/timer.jquery.js"></script> <script src="Bootstrap/js/timer.jquery.js"></script>