Fixed coding standards

This commit is contained in:
Claudio Sanches 2019-12-04 17:01:59 -03:00
parent c567b43098
commit 0794ffd285
1 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,10 @@ jQuery( function( $ ) {
$( '.show-password-input' ).click(
function() {
$( this ).toggleClass( 'display-password' );
if ( $( this ).hasClass('display-password') ) {
$( this ).siblings( ['input[name="password"]', 'input[type="password"]'] ).prop('type', 'text');
if ( $( this ).hasClass( 'display-password' ) ) {
$( this ).siblings( ['input[name="password"]', 'input[type="password"]'] ).prop( 'type', 'text' );
} else {
$( this ).siblings( 'input[name="password"]' ).prop('type', 'password');
$( this ).siblings( 'input[name="password"]' ).prop( 'type', 'password' );
}
}
);