Merge pull request #5652 from justinstern/master

Checkout Update Totals for Radio Fields
This commit is contained in:
Mike Jolley 2014-06-12 12:01:38 +01:00
commit 5b835a0def
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
jQuery( function( $ ) {
$.blockUI.defaults.overlayCSS.cursor = 'default';
$.blockUI.defaults.overlayCSS.cursor = 'default';
// wc_checkout_params is required to continue, ensure the object exists
if ( typeof wc_checkout_params === 'undefined' )
return false;
@ -187,7 +187,7 @@ jQuery( function( $ ) {
/* Update totals/taxes/shipping */
// Inputs/selects which update totals instantly
.on( 'input change', 'select.shipping_method, input[name^=shipping_method], #ship-to-different-address input, .update_totals_on_change select', function() {
.on( 'input change', 'select.shipping_method, input[name^=shipping_method], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type=radio]', function() {
clearTimeout( updateTimer );
dirtyInput = false;
$( 'body' ).trigger( 'update_checkout' );

File diff suppressed because one or more lines are too long