Small timeout on checkout update action to prevent several triggering at once.
Closes #7423
This commit is contained in:
parent
4cfabb8e16
commit
600b561fd9
|
@ -161,7 +161,12 @@ jQuery( function( $ ) {
|
|||
$parent.removeClass( 'woocommerce-invalid woocommerce-invalid-required-field' ).addClass( 'woocommerce-validated' );
|
||||
}
|
||||
},
|
||||
update_checkout: function() {
|
||||
update_checkout: function() {
|
||||
// Small timeout to prevent multiple requests when several fields update at the same time
|
||||
wc_checkout_form.reset_update_checkout_timer();
|
||||
wc_checkout_form.updateTimer = setTimeout( wc_checkout_form.update_checkout_action, '5' );
|
||||
},
|
||||
update_checkout_action: function() {
|
||||
if ( wc_checkout_form.xhr ) {
|
||||
wc_checkout_form.xhr.abort();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -159,6 +159,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Related posts - replace ORDER BY RAND() with random offset.
|
||||
* Tweak - Run item meta label through wc_attribute_label() in admin order page.
|
||||
* Tweak - Run File URLs through esc_url_raw instead of wc_clean to preserve spaces.
|
||||
* Tweak - Small timeout on checkout update action to prevent several triggering at once.
|
||||
|
||||
= 2.3.3 - 12/02/2015 =
|
||||
* Fix - Potential notice with preg_match wildcard search, if used incorrectly.
|
||||
|
|
Loading…
Reference in New Issue