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