Update password js files to trigger on button[type="submit"] instead of input[type="submit"]
This commit is contained in:
parent
8b16bdcf42
commit
5164dc25e3
|
@ -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' );
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue