Merge pull request #12940 from proArtex/master

checkout.js: add submiting order errors wrapper
This commit is contained in:
Mike Jolley 2017-01-25 01:01:18 +00:00 committed by GitHub
commit f4cb813987
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ jQuery( function( $ ) {
},
submit_error: function( error_message ) {
$( '.woocommerce-error, .woocommerce-message' ).remove();
wc_checkout_form.$checkout_form.prepend( error_message );
wc_checkout_form.$checkout_form.prepend( '<div class="woocommerce-NoticeGroup-updateOrderReview">' + error_message + '</div>' );
wc_checkout_form.$checkout_form.removeClass( 'processing' ).unblock();
wc_checkout_form.$checkout_form.find( '.input-text, select, input:checkbox' ).blur();
$( 'html, body' ).animate({