fer
This commit is contained in:
parent
b9d1a18d51
commit
9f5f07923e
|
|
@ -78,6 +78,11 @@ function raffraichier_gabarit()
|
||||||
|
|
||||||
if((codeSociete == undefined || codeSociete <= " ") && vue !="Connexion"){
|
if((codeSociete == undefined || codeSociete <= " ") && vue !="Connexion"){
|
||||||
|
|
||||||
|
const msg = "Votre session a expiré. Vous serez déconnecté.";
|
||||||
|
const msgEng = "Your session has expired. You will be disconnected.";
|
||||||
|
|
||||||
|
alert_ebene(msg, msgEng);
|
||||||
|
|
||||||
window.location.assign($("#racineWeb" ).val()+"Connexion/deconnecter/");
|
window.location.assign($("#racineWeb" ).val()+"Connexion/deconnecter/");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -201,17 +206,21 @@ function baseSwal(options) {
|
||||||
* Affiche une information bilingue.
|
* Affiche une information bilingue.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function alert_ebene(p_msg, p_msg_eng) {
|
function alert_ebene(msgFr, msgEn) {
|
||||||
const codeLangue = $("#codeLangue").val();
|
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
const message = (codeLangue === "en_US") ? msgEn : msgFr;
|
||||||
|
|
||||||
baseSwal({
|
// Appel via baseSwal
|
||||||
title: formatMessageForSwal(message),
|
return baseSwal({
|
||||||
|
text: message,
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
confirmButtonText: codeLangue === "en_US" ? 'OK' : 'D\'accord'
|
confirmButtonText: (codeLangue === "en_US") ? "OK" : "D'accord",
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
function alert_ebene(msgFr, msgEn) {
|
function alert_ebene(msgFr, msgEn) {
|
||||||
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||||
|
|
|
||||||
|
|
@ -655,7 +655,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
|
||||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
|
||||||
<!-- Application Scripts -->
|
<!-- Application Scripts -->
|
||||||
<script src="/Js/fonctions.js?ver=2026.01.20.05"></script>
|
<script src="/Js/fonctions.js?ver=2026.01.20.11"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
raffraichier_gabarit();
|
raffraichier_gabarit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user