| @@ -1,15 +1,15 @@ | ||
| 1 | 1 | ( function() { |
| 2 | 2 | function setupStripeConnectListener() { |
| 3 | - onclickPreventDefault( '#frm_disconnect_stripe', handleStripeDisconnectClick ); | |
| 4 | - onclickPreventDefault( '#frm_reauth_stripe', handleStripeReauthClick ); | |
| 5 | - onclickPreventDefault( '#frm_connect_with_oauth', handleConnectWithOauth ); | |
| 3 | + onclickPreventDefault( '.frm_disconnect_stripe', handleStripeDisconnectClick ); | |
| 4 | + onclickPreventDefault( '.frm_reauth_stripe', handleStripeReauthClick ); | |
| 5 | + onclickPreventDefault( '.frm_connect_with_oauth', handleConnectWithOauth ); | |
| 6 | 6 | renderStripeConnectSettingsButton(); |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | function renderStripeConnectSettingsButton() { |
| 10 | 10 | const container = document.getElementById( 'frm_strp_settings_container' ); |
| 11 | - if ( null !== container ) { | |
| 11 | + if ( container ) { | |
| 12 | 12 | postAjax( |
| 13 | 13 | { |
| 14 | 14 | action: 'frm_strp_connect_get_settings_button' |
| 15 | 15 | }, |