change target to apply block()

This commit is contained in:
David Remer 2020-09-29 10:11:27 +03:00
parent 4322386c85
commit 7caa0d3dbf

View file

@ -1,8 +1,11 @@
class Spinner { class Spinner {
constructor() {
this.target = 'form.woocommerce-checkout';
}
block() { block() {
jQuery( '.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table' ).block({ jQuery( this.target ).block({
message: null, message: null,
overlayCSS: { overlayCSS: {
background: '#fff', background: '#fff',
@ -13,7 +16,7 @@ class Spinner {
unblock() { unblock() {
jQuery( '.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table' ).unblock(); jQuery( this.target ).unblock();
} }
} }