correction boutton afficher pass word

This commit is contained in:
Jean-Philippe Staelen 2025-12-18 14:44:08 +01:00
parent 9b1a56727f
commit c361c08be7

View File

@ -197,7 +197,8 @@
}
// Toggle affichage du mot de passe sur la page de configuration
$('.esi-peppol-password-toggle').on('click', function () {
$('.esi-peppol-password-toggle').on('click', function (e) {
e.preventDefault();
var $btn = $(this);
var targetSelector = $btn.data('target');
var $input = $(targetSelector);
@ -504,19 +505,6 @@
});
}
// Toggle afficher/masquer mot de passe
var $passwordToggle = $('.esi-peppol-password-toggle');
if ($passwordToggle.length) {
$passwordToggle.on('click', function (e) {
e.preventDefault();
var $target = $($(this).data('target'));
if ($target.length) {
var type = $target.attr('type') === 'password' ? 'text' : 'password';
$target.attr('type', type);
$(this).text(type === 'password' ? 'Afficher' : 'Masquer');
}
});
}
});
})(jQuery);