V
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user