diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js index d2bc8415800254dba1b43e9c4bde193f6a465982..9a0cd86691123ae46eaa276629435a1e7da258a5 100644 --- a/www/conservancy/static/supporter-page.js +++ b/www/conservancy/static/supporter-page.js @@ -42,15 +42,16 @@ $(document).ready(function() { $(".t-shirt-size-selector").hide(); } }); - $('#amount').addClass("valid"); - $('#amount').on('input', function() { + $('.amount').addClass("valid"); + $('.amount').on('input', function() { var input=$(this); var value = input.val(); var errorElement=$("span", input.parent()); var noCommaValue = value; noCommaValue = value.replace(/,/g, ""); var re = /^((\d{1,3}(,?\d{3})*?(\.\d{0,2})?)|\d+(\.\d{0,2})?)$/; - var isValid = ( re.test(value) && parseInt(noCommaValue) >= 120); + var isValid = ( re.test(value) && + parseInt(noCommaValue) >= parseInt(input.attr("minimum"))); if (isValid) { input.removeClass("invalid").addClass("valid"); errorElement.removeClass("form-error-show").addClass("form-error"); @@ -62,7 +63,7 @@ $(document).ready(function() { } }); $("#supporter-form-submit").click(function(event){ - var valid = $('#amount').hasClass("valid"); + var valid = $('.amount').hasClass("valid"); if (! valid) { $("#form-correction-needed").removeClass("form-error").addClass("form-error-show") .css("font-weight", "bold").css("font-size", "150%"); diff --git a/www/conservancy/static/supporter/index.html b/www/conservancy/static/supporter/index.html index 464acfa39e2f66572c0b773c2f2829a8e67bdcf5..bbd76a0d57171ca51627beda1c613eb4a4d42c99 100644 --- a/www/conservancy/static/supporter/index.html +++ b/www/conservancy/static/supporter/index.html @@ -140,7 +140,7 @@ internal policies are published and available for scrutiny.

- + $120 is a minimum for Conservancy Supporters. Donate smaller amounts here.
@@ -194,10 +194,21 @@ internal policies are published and available for scrutiny.

monthly supporters for 12 months.

+ + - + + + + + + + - + + + $10/month is a minimum for Conservancy + Supporters. Donate smaller amounts here.
Yes