Changeset 53122
- Timestamp:
- 04/11/2022 04:27:11 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/user-profile.js
r52450 r53122 33 33 } 34 34 35 /* 36 * This works around a race condition when zxcvbn loads quickly and 37 * causes `generatePassword()` to run prior to the toggle button being 38 * bound. 39 */ 40 bindToggleButton(); 41 35 42 // Install screen. 36 43 if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) { … … 83 90 84 91 function bindToggleButton() { 92 if ( !! $toggleButton ) { 93 // Do not rebind. 94 return; 95 } 85 96 $toggleButton = $pass1Row.find('.wp-hide-pw'); 86 97 $toggleButton.show().on( 'click', function () {
Note: See TracChangeset
for help on using the changeset viewer.