Trigger click event correctly in checkout

This commit is contained in:
Mike Jolley 2014-03-24 11:02:05 +00:00
parent bd93a0023a
commit 995f6a48f1
2 changed files with 2 additions and 2 deletions

View File

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

File diff suppressed because one or more lines are too long