From ccc036d631c25a89ea2844eea1016d28de82e271 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 9 May 2024 14:10:10 +1000 Subject: [PATCH] Fix JS error --- conservancy/static/js/supporter-page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conservancy/static/js/supporter-page.js b/conservancy/static/js/supporter-page.js index b3f03930..3bee587b 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) {