Ticket #51613: 51613.diff
File 51613.diff, 561 bytes (added by , 4 years ago) |
---|
-
src/js/_enqueues/admin/user-profile.js
diff --git src/js/_enqueues/admin/user-profile.js src/js/_enqueues/admin/user-profile.js index 14c10b63bd..54e331bf1d 100644
146 146 147 147 bindToggleButton(); 148 148 149 // Generate the first password and cache it, but don't set it yet.150 wp.ajax.post( 'generate-password' )151 .done( function( data ) {152 // Cache password.153 $pass1.data( 'pw', data );154 } );155 156 149 $generateButton.show(); 157 150 $generateButton.on( 'click', function () { 158 151 updateLock = true;