Apply validation for checkbox while update and submit errors #11360

This commit is contained in:
Claudio Sanches 2016-07-05 19:21:51 -03:00
parent 475cc036e5
commit 561cdd35e5
2 changed files with 3 additions and 3 deletions

View File

@ -311,7 +311,7 @@ jQuery( function( $ ) {
}
// Lose focus for all fields
$form.find( '.input-text, select' ).blur();
$form.find( '.input-text, select, input:checkbox' ).blur();
// Scroll to top
$( 'html, body' ).animate( {
@ -440,7 +440,7 @@ jQuery( function( $ ) {
$( '.woocommerce-error, .woocommerce-message' ).remove();
wc_checkout_form.$checkout_form.prepend( error_message );
wc_checkout_form.$checkout_form.removeClass( 'processing' ).unblock();
wc_checkout_form.$checkout_form.find( '.input-text, select' ).blur();
wc_checkout_form.$checkout_form.find( '.input-text, select, input:checkbox' ).blur();
$( 'html, body' ).animate({
scrollTop: ( $( 'form.checkout' ).offset().top - 100 )
}, 1000 );

File diff suppressed because one or more lines are too long