Change the way order review data is appended to checkout to reduce likelihood of error

Fixes #5332
This commit is contained in:
Mike Jolley 2014-04-24 15:08:38 +01:00
parent bf0fafa17b
commit 5d872918d6
2 changed files with 2 additions and 3 deletions

View File

@ -78,8 +78,7 @@ jQuery( function( $ ) {
data: data,
success: function( response ) {
if ( response ) {
var order_output = $( $.parseHTML( $.trim( response ) ) );
$( '#order_review' ).html( order_output.html() );
$( '#order_review' ).html( $.trim( response ) );
$( '#order_review' ).find( 'input[name=payment_method]:checked' ).trigger('click');
$( 'body' ).trigger('updated_checkout' );
}

File diff suppressed because one or more lines are too long