tweak the checkout update js

This commit is contained in:
Mike Jolley 2012-06-28 12:52:58 +01:00
parent b373a82de2
commit c37525383b
2 changed files with 4 additions and 7 deletions

View File

@ -660,11 +660,11 @@ jQuery(document).ready(function($) {
$('select#shipping_method, input[name=shipping_method]').live('change', function(){
$('body').trigger('update_checkout');
});
$('input#billing_country, input#billing_state, #billing_postcode, input#shipping_country, input#shipping_state, #shipping_postcode').live('keydown', function(){
clearTimeout(updateTimer);
$('.update_totals_on_change input').live('keydown', function(){
clearTimeout( updateTimer );
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(){
$('#shiptobilling input, .update_totals_on_change select, .update_totals_on_change input').live('change', function(){
$('body').trigger('update_checkout');
});
@ -861,7 +861,4 @@ jQuery(document).ready(function($) {
}
// Get this show on the road - update locale when loaded
$('select.country_to_state').change();
});

File diff suppressed because one or more lines are too long