Settings: reassign the label when switching password fields so it always highlights the visible field.

Props umesh.nevase.
Fixes #33778 for trunk.
Built from https://develop.svn.wordpress.org/trunk@34061


git-svn-id: http://core.svn.wordpress.org/trunk@34029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-09-11 22:52:26 +00:00
parent efcdeea2f1
commit 0406f50cfb
3 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,7 @@
$pass1Wrap,
$pass1,
$pass1Text,
$pass1Label,
$pass2,
$weakRow,
$weakCheckbox,
@ -116,6 +117,8 @@
$pass1Text.focus();
$pass1Label.attr( 'for', 'pass1-text' );
if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) {
$pass1Text[0].setSelectionRange( 0, 100 );
}
@ -135,6 +138,8 @@
$pass1.focus();
$pass1Label.attr( 'for', 'pass1' );
if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) {
$pass1[0].setSelectionRange( 0, 100 );
}
@ -148,6 +153,8 @@
$cancelButton;
$pass1Row = $('.user-pass1-wrap');
$pass1Label = $pass1Row.find('th label');
// hide this
$('.user-pass2-wrap').hide();

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34060';
$wp_version = '4.4-alpha-34061';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.