Skip to content

Commit

Permalink
change target to apply block()
Browse files Browse the repository at this point in the history
  • Loading branch information
websupporter committed Sep 29, 2020
1 parent 4322386 commit 7caa0d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/ppcp-button/resources/js/modules/Helper/Spinner.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -13,7 +16,7 @@ class Spinner {

unblock() {

jQuery( '.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table' ).unblock();
jQuery( this.target ).unblock();
}
}

Expand Down

0 comments on commit 7caa0d3

Please sign in to comment.