Fix JS minification error

When the woocommerce.js file is minified the update_checkout
method name is shortened, making the timeout call fail. This
patch fixes it by referring to the function directly when
setting up the timeout.
This commit is contained in:
Andrew White 2012-02-16 13:31:47 +00:00
parent b7b53dbe1a
commit ae03c15e54
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ jQuery(document).ready(function($) {
});
$('input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode').live('keydown', function(){
clearTimeout(updateTimer);
updateTimer = setTimeout("update_checkout()", '1000');
updateTimer = setTimeout(update_checkout, '1000');
});
$('select#billing_country, select#billing_state, select#shipping_country, select#shipping_state, #shiptobilling input, .update_totals_on_change').live('change', function(){
$('body').trigger('update_checkout');

File diff suppressed because one or more lines are too long