Ticket #33385: 33385.3.diff
File 33385.3.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/user-profile.js
47 47 .addClass( $pass1[0].className ) 48 48 .data( 'pw', $pass1.data( 'pw' ) ) 49 49 .val( $pass1.val() ) 50 .on( ' input propertychange', function () {50 .on( 'keyup', function () { 51 51 if ( $pass1Text.val() === currentPass ) { 52 52 return; 53 53 } … … 62 62 generatePassword(); 63 63 } 64 64 65 $pass1.on( ' input propertychangepwupdate', function () {65 $pass1.on( 'keyup pwupdate', function () { 66 66 if ( $pass1.val() === currentPass ) { 67 67 return; 68 68 } … … 163 163 * This fixes the issue by copying any changes from the hidden 164 164 * pass2 field to the pass1 field, then running check_pass_strength. 165 165 */ 166 $pass2 = $('#pass2').on( 'input propertychange', function () { 166 $pass2 = $('#pass2'); 167 $pass2.on( 'keyup', function () { 167 168 if ( $pass2.val().length > 0 ) { 168 169 $pass1.val( $pass2.val() ); 169 170 $pass2.val(''); … … 244 245 var $colorpicker, $stylesheet, user_id, current_user_id, 245 246 select = $( '#display_name' ); 246 247 247 $('#pass1').val('').on( ' input propertychangepwupdate', check_pass_strength );248 $('#pass1').val('').on( 'keyup pwupdate', check_pass_strength ); 248 249 $('#pass-strength-result').show(); 249 250 $('.color-palette').click( function() { 250 251 $(this).siblings('input[name="admin_color"]').prop('checked', true);