Ticket #33778: 33778.patch
File 33778.patch, 1006 bytes (added by , 9 years ago) |
---|
-
user-profile.js
57 57 } ); 58 58 59 59 $pass1.after( $pass1Text ); 60 61 $pass1Row.find('th').children('label').attr({'for':'pass1-text'}); 60 62 61 63 if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) { 62 64 generatePassword(); … … 104 106 .find( '.dashicons' ) 105 107 .removeClass('dashicons-visibility') 106 108 .addClass('dashicons-hidden'); 107 109 108 110 $pass1Text.focus(); 111 112 $pass1Row.find('th').children('label').attr({'for':'pass1-text'}); 109 113 110 114 if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) { 111 115 $pass1Text[0].setSelectionRange( 0, 100 ); … … 125 129 .addClass('dashicons-visibility'); 126 130 127 131 $pass1.focus(); 132 133 $pass1Row.find('th').children('label').attr({'for':'pass1'}); 128 134 129 135 if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) { 130 136 $pass1[0].setSelectionRange( 0, 100 );