Update password js files to trigger on button[type="submit"] instead of input[type="submit"]

This commit is contained in:
Gerhard Potgieter 2017-11-07 12:37:36 +02:00
parent 8b16bdcf42
commit 5164dc25e3
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
jQuery( function( $ ) {
$( '.lost_reset_password' ).on( 'submit', function () {
$( 'input[type="submit"]', this ).attr( 'disabled', 'disabled' );
$( 'button[type="submit"]', this ).attr( 'disabled', 'disabled' );
});
});

View File

@ -20,7 +20,7 @@
*/
strengthMeter: function() {
var wrapper = $( 'form.register, form.checkout, form.edit-account, form.lost_reset_password' ),
submit = $( 'input[type="submit"]', wrapper ),
submit = $( 'button[type="submit"]', wrapper ),
field = $( '#reg_password, #account_password, #password_1', wrapper ),
strength = 1,
fieldValue = field.val();