Changeset 35603
- Timestamp:
- 11/10/2015 08:40:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/user-profile.js
r34539 r35603 196 196 } ); 197 197 198 // Disable the hidden inputs to prevent autofill and submission. 199 $pass1.prop( 'disabled', true ); 200 $pass2.prop( 'disabled', true ); 201 $pass1Text.prop( 'disabled', true ); 202 198 203 $passwordWrapper = $pass1Row.find( '.wp-pwd' ); 199 204 $generateButton = $pass1Row.find( 'button.wp-generate-pw' ); … … 211 216 $generateButton.hide(); 212 217 $passwordWrapper.show(); 218 219 // Enable the inputs when showing. 220 $pass1.attr( 'disabled', false ); 221 $pass2.attr( 'disabled', false ); 222 $pass1Text.attr( 'disabled', false ); 213 223 214 224 if ( $pass1Text.val().length === 0 ) { … … 239 249 $generateButton.show(); 240 250 $passwordWrapper.hide(); 251 252 // Disable the inputs when hiding to prevent autofill and submission. 253 $pass1.prop( 'disabled', true ); 254 $pass2.prop( 'disabled', true ); 255 $pass1Text.prop( 'disabled', true ); 241 256 242 257 resetToggle();
Note: See TracChangeset
for help on using the changeset viewer.