Update .focus and .toggleClass that were missed

This commit is contained in:
roykho 2021-02-05 06:51:57 -08:00 committed by Jonathan Sadowski
parent 84533ac38f
commit a75a3d7176
2 changed files with 7 additions and 3 deletions

View File

@ -1470,7 +1470,7 @@ jQuery( function ( $ ) {
'fadeIn': 50,
'fadeOut': 50,
'delay': 0
}).focus();
}).trigger( 'focus' );
},
/**
@ -1483,7 +1483,7 @@ jQuery( function ( $ ) {
'fadeIn': 50,
'fadeOut': 50,
'delay': 0
}).focus();
}).trigger( 'focus' );
}
};

View File

@ -87,7 +87,11 @@ jQuery( function( $ ) {
$( '.show-password-input' ).on( 'click',
function() {
$( this ).toggleClass( 'display-password' );
if ( $( this ).hasClass( 'display-password' ) ) {
$( this ).removeClass( 'display-password' );
} else {
$( this ).addClass( 'display-password' );
}
if ( $( this ).hasClass( 'display-password' ) ) {
$( this ).siblings( ['input[type="password"]'] ).prop( 'type', 'text' );
} else {