mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
render buttons after 3 sec delay
This commit is contained in:
parent
7d4caeaf2c
commit
52d81b8fde
1 changed files with 8 additions and 3 deletions
|
@ -11,11 +11,16 @@ class CheckoutBootstap {
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
|
||||||
setTimeout(() => this.render(), 1000);
|
setTimeout(() => {
|
||||||
|
|
||||||
jQuery(document.body).on('updated_checkout', () => {
|
|
||||||
this.render();
|
this.render();
|
||||||
});
|
|
||||||
|
jQuery(document.body).on('updated_checkout', () => {
|
||||||
|
this.render();
|
||||||
|
});
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery(document.body).
|
jQuery(document.body).
|
||||||
on('updated_checkout payment_method_selected', () => {
|
on('updated_checkout payment_method_selected', () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue