mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
change target to apply block()
This commit is contained in:
parent
4322386c85
commit
7caa0d3dbf
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue