ff
This commit is contained in:
parent
8aaff1218c
commit
e152a9d5cb
|
|
@ -196,7 +196,7 @@ function baseSwal(options) {
|
|||
* ALERTE SIMPLE
|
||||
* Affiche une information bilingue.
|
||||
*/
|
||||
/* mis en commentaire le temps que cela fonctionne 04/01/2026
|
||||
|
||||
function alert_ebene(p_msg, p_msg_eng) {
|
||||
const codeLangue = $("#codeLangue").val();
|
||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
||||
|
|
@ -207,24 +207,8 @@ function alert_ebene(p_msg, p_msg_eng) {
|
|||
confirmButtonText: codeLangue === "en_US" ? 'OK' : 'D\'accord'
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
function alert_ebene(p_msg, p_msg_eng)
|
||||
{
|
||||
codeLangue = $("#codeLangue").val();
|
||||
|
||||
if(codeLangue=="en_US")
|
||||
{
|
||||
alert(p_msg_eng);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(p_msg);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
function alert_ebene(msgFr, msgEn) {
|
||||
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||
const message = (codeLangue === "en_US") ? msgEn : msgFr;
|
||||
|
|
@ -232,35 +216,6 @@ function alert_ebene(msgFr, msgEn) {
|
|||
// Bloquant : l'utilisateur doit cliquer sur OK
|
||||
window.alert(message);
|
||||
}
|
||||
|
||||
/*
|
||||
function alert_ebene(p_msg, p_msg_eng) {
|
||||
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
||||
|
||||
return Swal.fire({
|
||||
text: message,
|
||||
icon: 'info',
|
||||
confirmButtonText: (codeLangue === "en_US") ? 'OK' : 'D\'accord'
|
||||
}).then(() => {
|
||||
// Ici tu mets l'action suivante, elle ne s'exécute qu'après clic sur OK
|
||||
console.log("Utilisateur a validé le message");
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
function alert_ebene(msgFr, msgEn) {
|
||||
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||
const message = (codeLangue === "en_US") ? msgEn : msgFr;
|
||||
|
||||
return Swal.fire({
|
||||
text: message,
|
||||
icon: 'info',
|
||||
confirmButtonText: (codeLangue === "en_US") ? 'OK' : 'D\'accord'
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -515,11 +470,8 @@ function ajax_context_police_afficher(idPolice) {
|
|||
const msg = "Erreur lors de la préparation du dossier police.";
|
||||
const msgEng = "Error while preparing the policy file.";
|
||||
|
||||
if (typeof alert_ebene === "function") {
|
||||
alert_ebene(msg, msgEng);
|
||||
} else {
|
||||
alert(msg);
|
||||
}
|
||||
alert_ebene(msg, msgEng);
|
||||
|
||||
},
|
||||
complete: function() {
|
||||
// Redirection vers la fiche de la police après le traitement AJAX
|
||||
|
|
@ -606,11 +558,9 @@ function imprimer_quittance_client(idQuittance) {
|
|||
if (!idQuittance || parseInt(idQuittance) <= 0) {
|
||||
const v_msg = "Rien à imprimer !";
|
||||
const v_msgEng = "Nothing to print!";
|
||||
if (typeof alert_ebene === "function") {
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
} else {
|
||||
alert(v_msg);
|
||||
}
|
||||
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1864,7 +1814,9 @@ function ebene_enregistrer_photo_face() // OK
|
|||
{
|
||||
v_msg="Enrôlement effectué avec succès!";
|
||||
v_msgEng="Enrollment completed successfully!!";
|
||||
// alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+v_idBeneficiaire);
|
||||
}, 1000)
|
||||
|
|
@ -1977,7 +1929,7 @@ function ebene_confirmer_photo_face() // OK
|
|||
$("#okId_face").val("1");
|
||||
v_msg="Face confirmée!";
|
||||
v_msgEng="Face confirmed!";
|
||||
// alert_ebene(v_msg, v_msgEng);
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
setTimeout(() => {
|
||||
prestations();
|
||||
}, 2000)
|
||||
|
|
@ -2094,7 +2046,7 @@ function ebene_supprimer_photo_face() // OK
|
|||
|
||||
v_msg="Face supprimée avec succès!";
|
||||
v_msgEng="Face removed successfully!";
|
||||
// alert_ebene(v_msg, v_msgEng);
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
setTimeout(() => {
|
||||
prestations();
|
||||
}, 2000)
|
||||
|
|
@ -2803,7 +2755,7 @@ function importer_modele_assure(idAvenant) {
|
|||
// On attend un tout petit peu que le DOM soit stable avant de passer à la suite
|
||||
setTimeout(function(){
|
||||
maj_etape_3_import_assures();
|
||||
}, 500);
|
||||
}, 1000);
|
||||
} else {
|
||||
div_export.html(''); // On cache le spinner
|
||||
// Le message d'erreur est déjà affiché par $("#div_erreur_excel").html(data)
|
||||
|
|
@ -2869,12 +2821,12 @@ function calculer_prime_inmportation()
|
|||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data) {
|
||||
/*
|
||||
|
||||
v_msg="Calcul de primes terminée avec succès!";
|
||||
v_msgEng="Premium calculation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
alert("Calcul de primes terminée avec succès!");
|
||||
*/
|
||||
//alert("Calcul de primes terminée avec succès!");
|
||||
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user