mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fire ppcp_buttons_enabled_changed
This commit is contained in:
parent
bf64309bf5
commit
465649ba15
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ export default class BootstrapHelper {
|
|||
disable(options.messagesWrapper);
|
||||
}
|
||||
}
|
||||
|
||||
if (wasDisabled !== !shouldEnable) {
|
||||
jQuery(options.wrapper).trigger('ppcp_buttons_enabled_changed', [shouldEnable]);
|
||||
}
|
||||
}
|
||||
|
||||
static shouldEnable(bs, options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue