MediaWiki:DonationForm T201415.js: Difference between revisions

Content deleted Content added
update with recent fixes
clean trailing spaces
Line 362:
[ 175, [ 175, 200, 300, 400, 500, 750, 1000 ] ],
[ 200, [ 200, 225, 300, 400, 500, 750, 1000 ] ],
],
'2018control' : [
[ 0, [ 5, 10, 20, 25, 35, 50, 100 ] ],
Line 674:
/**
* Validate form, and if it looks good submit to payments
*
* @param {string} paymentMethod - method e.g. 'cc', 'paypal'
* @param {string} paymentSubMethod - submethod e.g. 'rtbt_ideal' (a submethod of 'rtbt')
Line 700:
form.ffname.value = 'adyen';
}
 
// dLocal override for cc
if ( paymentMethod === 'cc-dlocal' ) {
Line 744:
form.method = 'GET';
form.submit();
 
} else {
donationForm.extraData.validateError = 1; // Flag they had an error, even if fixed later
Line 792:
var existingUtmKey = mw.util.getParamValue('utm_key'),
dataArray = [];
 
if ( existingUtmKey ) {
dataArray.push( existingUtmKey );
Line 964:
donationForm.initOptin = function() {
$('.optin-options').on('change', function(e) {
 
$('#error-optin').hide();
 
Line 1,060:
 
// Allow preselecting monthly
if( mw.util.getParamValue('monthly')
&& donationForm.noRecurringCountries.indexOf( form.country.value ) === -1 ) {
$('#frequency_monthly').click();