Update .focus and .toggleClass that were missed
This commit is contained in:
parent
84533ac38f
commit
a75a3d7176
|
@ -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' );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue