This commit is contained in:
2025-12-19 12:46:17 +00:00
parent 022468fb9a
commit 7dadb2b56a
26 changed files with 339 additions and 2715 deletions

View File

@@ -16267,43 +16267,31 @@ function raffraichier_gabarit()
function connexion_cookie()
{
var msgErreur = $("#msgErreur").val();
var racineWeb = $("#racineWeb").val();
msgErreur=$("#msgErreur").val();
// Désactiver temporairement l'initialisation du slider
window.skipSliderInit = true;
donnees = 'msgErreur='+msgErreur;
$.ajax({
url: racineWeb + "Ajaxconnexioncookie/",
url: $("#racineWeb").val()+"Ajaxconnexioncookie/",
type: 'POST',
data: { msgErreur: msgErreur || '' },
data: donnees,
success: function(data)
{
$("#div_ajaxconnexion").html(data);
// Réactiver l'initialisation du slider après un délai
setTimeout(function() {
window.skipSliderInit = false;
}, 100);
},
error: function(errorData)
{
console.error("Erreur AJAX:", errorData);
},
complete: function()
{
var loginElement = document.getElementById("login");
var mdpElement = document.getElementById("mdp");
if (loginElement && loginElement.value && loginElement.value.trim() !== "")
var login = document.getElementById("login").value;
if (login>" ")
{
if (mdpElement) {
mdpElement.focus();
}
$("#mdp").focus();
}
else if (loginElement)
else
{
loginElement.focus();
$("#login").focus();
}
}
});