Fix JS error

This commit is contained in:
Ben Sturmfels 2024-05-09 14:10:10 +10:00
parent 73e30c30e8
commit ccc036d631
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -36,11 +36,12 @@ if (window.location.hash === "#renew") {
window.location.hash = "#renewal"; window.location.hash = "#renewal";
} }
var $formCorrectionNeeded = $('#form-correction-needed');
function init_sustainer_form_validation () { function init_sustainer_form_validation () {
// Forms start in "invalid" form, with the errors shown, so that // Forms start in "invalid" form, with the errors shown, so that
// non-Javascript users see the errors by default and know what they must // non-Javascript users see the errors by default and know what they must
// enter. Now we hide those for JavaScript users: // enter. Now we hide those for JavaScript users:
var $formCorrectionNeeded = $('#form-correction-needed');
$formCorrectionNeeded.addClass('hidden'); $formCorrectionNeeded.addClass('hidden');
$('form.supporter-form').each(function(index, form) { $('form.supporter-form').each(function(index, form) {