a
This commit is contained in:
parent
9bfe29c893
commit
be1511d6c6
|
|
@ -1512,3 +1512,45 @@ function recapituler_retrait()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function enregistrer_retrait()
|
||||||
|
{
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user