Passwords: fix the markup on the Reset Password Form for user-pass1 so the JavaScript operates properly.

Props ldinclaux.
See #33892.
Fixes #33908.


git-svn-id: https://develop.svn.wordpress.org/trunk@34371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-22 03:56:25 +00:00
parent f9d1856805
commit 8a33422bfc
2 changed files with 17 additions and 10 deletions
+7 -2
View File
@@ -190,11 +190,16 @@
}
} );
$passwordWrapper = $pass1Row.find('.wp-pwd').hide();
$passwordWrapper = $pass1Row.find( '.wp-pwd' );
$generateButton = $pass1Row.find( 'button.wp-generate-pw' );
bindToggleButton();
$generateButton = $pass1Row.find( 'button.wp-generate-pw' ).show();
if ( $generateButton.length ) {
$passwordWrapper.hide();
}
$generateButton.show();
$generateButton.on( 'click', function () {
updateLock = true;