mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix JS error
This commit is contained in:
parent
f0d276be4c
commit
e05bbd18ef
@ -77,9 +77,11 @@ $(function(){
|
|||||||
$('#wepay-country input').change(handleCountryChange)
|
$('#wepay-country input').change(handleCountryChange)
|
||||||
function handleCountryChange(){
|
function handleCountryChange(){
|
||||||
var country = $('#wepay-country input:checked').val();
|
var country = $('#wepay-country input:checked').val();
|
||||||
|
if(country) {
|
||||||
$('#wepay-accept-debit').toggle(country == 'CA');
|
$('#wepay-accept-debit').toggle(country == 'CA');
|
||||||
$('#wepay-tos-link').attr('href', 'https://go.wepay.com/terms-of-service-' + country.toLowerCase());
|
$('#wepay-tos-link').attr('href', 'https://go.wepay.com/terms-of-service-' + country.toLowerCase());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
handleCountryChange();
|
handleCountryChange();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user