fer
This commit is contained in:
parent
b9d1a18d51
commit
9f5f07923e
|
|
@ -78,6 +78,11 @@ function raffraichier_gabarit()
|
|||
|
||||
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/");
|
||||
}
|
||||
},
|
||||
|
|
@ -201,17 +206,21 @@ function baseSwal(options) {
|
|||
* Affiche une information bilingue.
|
||||
*/
|
||||
|
||||
function alert_ebene(p_msg, p_msg_eng) {
|
||||
const codeLangue = $("#codeLangue").val();
|
||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
||||
|
||||
baseSwal({
|
||||
title: formatMessageForSwal(message),
|
||||
function alert_ebene(msgFr, msgEn) {
|
||||
const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR";
|
||||
const message = (codeLangue === "en_US") ? msgEn : msgFr;
|
||||
|
||||
// Appel via baseSwal
|
||||
return baseSwal({
|
||||
text: message,
|
||||
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) {
|
||||
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>
|
||||
|
||||
<!-- 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">
|
||||
raffraichier_gabarit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user