| @@ -157,13 +157,13 @@ | ||
| 157 | 157 | function( event ) { |
| 158 | 158 | var $form = $(this).closest('form'); |
| 159 | 159 | if( ! $form.hasClass('uwp-login-form') ) { |
| 160 | 160 | uwp_checkPasswordStrength( |
| 161 | - $form.find('input[name=password]'), | |
| 162 | - $form.find('input[name=confirm_password]'), | |
| 163 | - $form.find('#uwp-password-strength'), | |
| 164 | - $form.find('button[type="submit"], input[type="submit"]'), | |
| 165 | - ['black', 'listed', 'word'] | |
| 161 | + $('input[name=password]', $form), // First password field | |
| 162 | + $('input[name=confirm_password]', $form), // Second password field | |
| 163 | + $('#uwp-password-strength', $form), // Strength meter | |
| 164 | + $('input[type=submit]', $form), // Submit button | |
| 165 | + ['black', 'listed', 'word'] // Blacklisted words | |
| 166 | 166 | ); |
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | ); |