trim whitespace so parseHTML only contains HTML
This commit is contained in:
parent
0cd4f4c6e0
commit
e365413cfc
|
@ -72,7 +72,7 @@ jQuery(function($) {
|
|||
data: data,
|
||||
success: function( response ) {
|
||||
if ( response ) {
|
||||
var order_output = $($.parseHTML(response));
|
||||
var order_output = $($.parseHTML(response.trim()));
|
||||
$('#order_review').html(order_output.html());
|
||||
$('#order_review').find('input[name=payment_method]:checked').click();
|
||||
$('body').trigger('updated_checkout');
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue