This commit is contained in:
KONE SOREL 2026-01-06 08:36:28 +00:00
parent 22127dd080
commit 0c1c1da804
2 changed files with 18 additions and 1 deletions

View File

@ -216,6 +216,7 @@ function alert_ebene(p_msg, p_msg_eng)
}
*/
/*
function alert_ebene(msgFr, msgEn) {
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
const message = (codeLangue === "en_US") ? msgEn : msgFr;
@ -223,6 +224,22 @@ 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) {

View File

@ -638,7 +638,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Application Scripts -->
<script src="/Js/fonctions.js?ver=2026.01.05.36"></script>
<script src="/Js/fonctions.js?ver=2026.01.06.00"></script>
<script type="text/javascript">
raffraichier_gabarit();