MediaWiki:DonationForm.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
create noRecurringCountries to hide monthly option, disallow monthly preselect for them - phab:T234235 |
also hide recurring smallprint for noRecurringCountries |
||
Line 1,047: | Line 1,047: | ||
if ( donationForm.noRecurringCountries.indexOf( form.country.value ) !== -1 ) { |
if ( donationForm.noRecurringCountries.indexOf( form.country.value ) !== -1 ) { |
||
$('#frequency_onetime').prop('checked', true); |
$('#frequency_onetime').prop('checked', true); |
||
$('.frequency-options, #cancel-monthly').hide(); |
$('.frequency-options, #cancel-monthly, #donate-recurring-smallprint').hide(); |
||
} |
} |
||