diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js
index bb80a32..ab4b3e8 100644
|
a
|
b
|
|
| 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( 'keypress', function () { |
| 51 | 51 | if ( $pass1Text.val() === currentPass ) { |
| 52 | 52 | return; |
| 53 | 53 | } |
| … |
… |
|
| 62 | 62 | generatePassword(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | | $pass1.on( 'input propertychange pwupdate', function () { |
| | 65 | $pass1.on( 'keypress 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( 'keypress', 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 propertychange pwupdate', check_pass_strength ); |
| | 248 | $('#pass1').val('').on( 'keypress 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); |