diff --git a/Js/fonctions.js b/Js/fonctions.js
index 36da2fd..a97fa87 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -1512,3 +1512,48 @@ function recapituler_retrait()
}
});
}
+
+function enregistrer_retrait()
+{
+ alert("enregistrer_retrait");
+ return;
+
+ var div_assure_a_retirer = $('#div_assure_a_retirer');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxdetailretrait/recapituler/",
+ type: 'POST',
+ success: function(data) {
+ div_assure_a_retirer.html(data);
+ },
+ error: function(data) {
+ },
+ complete: function() {
+ nbAliment=$("#nbAliment").val();
+
+ if (nbAliment<"1")
+ {
+ v_msg="Veuillez sélectionner les personnes à retirer!";
+ v_msgEng="Please select the people to remove!";
+ alert_ebene(v_msg, v_msgEng);
+
+ return;
+ }
+
+ v_msg="Confirmez-vous le retrait des personnes sélectionnées de cette police?";
+ v_msgEng="Do you confirm the withdrawal of the selected people from this policy?";
+
+ confirm_ebene(v_msg, v_msgEng)
+ .then((isConfirmed) => {
+ if (isConfirmed) {
+ // L'utilisateur a confirmé
+ window.location.assign($("#racineWeb" ).val()+"Ficheretrait/enregistrerretrait/");
+ } else {
+ // L'utilisateur a annulé
+ console.log("Confirmation refusée");
+ }
+ });
+
+ }
+ });
+}
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 0367d8a..1da9cd2 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -595,7 +595,7 @@ $activeChildId = $menuData['child'];
-
+