diff --git a/Js/fonctions.js b/Js/fonctions.js
index 8ca5c8a..d5c9f9c 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -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) {
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index d252141..d771bdf 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -638,7 +638,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
-
+