Changeset 38494
- Timestamp:
- 09/01/2016 12:23:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/user-profile.js
r37940 r38494 261 261 resetToggle(); 262 262 263 // Clear password field to prevent update 264 $pass1.val( '' ).trigger( 'pwupdate' ); 265 $submitButtons.prop( 'disabled', false ); 263 if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) { 264 // Clear password field to prevent update 265 $pass1.val( '' ).trigger( 'pwupdate' ); 266 $submitButtons.prop( 'disabled', false ); 267 } 266 268 } ); 267 269 268 $pass1Row.closest( 'form').on( 'submit', function () {270 $pass1Row.closest( 'form' ).on( 'submit', function () { 269 271 updateLock = false; 270 272
Note: See TracChangeset
for help on using the changeset viewer.