mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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 {
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue