update
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
(function ($) {
|
||||
"use strict";
|
||||
/*----------------------------------------
|
||||
passward show hide
|
||||
----------------------------------------*/
|
||||
$('.show-hide').show();
|
||||
$('.show-hide span').addClass('show');
|
||||
|
||||
$('.show-hide span').click(function () {
|
||||
if ($(this).hasClass('show')) {
|
||||
$('input[name="login[password]"]').attr('type', 'text');
|
||||
$(this).removeClass('show');
|
||||
} else {
|
||||
$('input[name="login[password]"]').attr('type', 'password');
|
||||
$(this).addClass('show');
|
||||
}
|
||||
});
|
||||
$('form button[type="submit"]').on('click', function () {
|
||||
$('.show-hide span').text('Show').addClass('show');
|
||||
$('.show-hide').parent().find('input[name="login[password]"]').attr('type', 'password');
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user