correction boutton afficher pass word
This commit is contained in:
parent
9b1a56727f
commit
c361c08be7
@ -197,7 +197,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Toggle affichage du mot de passe sur la page de configuration
|
// 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 $btn = $(this);
|
||||||
var targetSelector = $btn.data('target');
|
var targetSelector = $btn.data('target');
|
||||||
var $input = $(targetSelector);
|
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);
|
})(jQuery);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user