Changeset 46103
- Timestamp:
- 09/13/2019 06:29:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/user-profile.js
r44895 r46103 273 273 var pass1 = $('#pass1').val(), strength; 274 274 275 $('#pass-strength-result').removeClass('short bad good strong ');275 $('#pass-strength-result').removeClass('short bad good strong empty'); 276 276 if ( ! pass1 ) { 277 $( '#pass-strength-result').html( ' ' );277 $( '#pass-strength-result' ).addClass( 'empty' ).html( ' ' ); 278 278 return; 279 279 } … … 313 313 $weakRow.show(); 314 314 } else { 315 $submitButtons.prop( 'disabled', false ); 315 if ( $( passStrength ).is( '.empty' ) ) { 316 $submitButtons.prop( 'disabled', true ); 317 $weakCheckbox.prop( 'checked', false ); 318 } else { 319 $submitButtons.prop( 'disabled', false ); 320 } 316 321 $weakRow.hide(); 317 322 }
Note: See TracChangeset
for help on using the changeset viewer.