diff --git a/modules/ppcp-button/resources/js/modules/Helper/Spinner.js b/modules/ppcp-button/resources/js/modules/Helper/Spinner.js index 12790dcb1..50e4eebd9 100644 --- a/modules/ppcp-button/resources/js/modules/Helper/Spinner.js +++ b/modules/ppcp-button/resources/js/modules/Helper/Spinner.js @@ -1,8 +1,11 @@ class Spinner { + constructor() { + this.target = 'form.woocommerce-checkout'; + } block() { - jQuery( '.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table' ).block({ + jQuery( this.target ).block({ message: null, overlayCSS: { background: '#fff', @@ -13,7 +16,7 @@ class Spinner { unblock() { - jQuery( '.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table' ).unblock(); + jQuery( this.target ).unblock(); } }