trim whitespace so parseHTML only contains HTML

This commit is contained in:
Marc Pfister 2014-02-28 08:18:41 -07:00
parent 0cd4f4c6e0
commit e365413cfc
2 changed files with 2 additions and 2 deletions

View File

@ -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