Fix JS error
This commit is contained in:
parent
f0d276be4c
commit
e05bbd18ef
1 changed files with 4 additions and 2 deletions
|
|
@ -77,8 +77,10 @@ $(function(){
|
|||
$('#wepay-country input').change(handleCountryChange)
|
||||
function handleCountryChange(){
|
||||
var country = $('#wepay-country input:checked').val();
|
||||
$('#wepay-accept-debit').toggle(country == 'CA');
|
||||
$('#wepay-tos-link').attr('href', 'https://go.wepay.com/terms-of-service-' + country.toLowerCase());
|
||||
if(country) {
|
||||
$('#wepay-accept-debit').toggle(country == 'CA');
|
||||
$('#wepay-tos-link').attr('href', 'https://go.wepay.com/terms-of-service-' + country.toLowerCase());
|
||||
}
|
||||
}
|
||||
handleCountryChange();
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue