Template:2012FR/Form-section/Processing/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
allow an override for worldpay
skipValidation, missing semicolons
Line 64: Line 64:
donationForm.addAnalytics();
donationForm.addAnalytics();
if (validateForm(form) || skipValidation) {
if ( skipValidation || validateForm(form) ) {
form.method = "POST";
form.method = "POST";
form.submit();
form.submit();
}
}
}
};


donationForm.addAnalytics = function() {
donationForm.addAnalytics = function() {
Line 109: Line 109:
form.utm_source.value += '.' + form.payment_method.value;
form.utm_source.value += '.' + form.payment_method.value;
form.utm_campaign.value = getQuerystring( 'utm_campaign' );
form.utm_campaign.value = getQuerystring( 'utm_campaign' );
}
};


donationForm.toggleMonthly = function(monthly) {
donationForm.toggleMonthly = function(monthly) {
Line 117: Line 117:
$('#form-wrapper').removeClass('form-monthly');
$('#form-wrapper').removeClass('form-monthly');
}
}
}
};
</script>
</script>
</html>
</html>

Revision as of 17:04, 12 January 2015