|
bkuhn
|
44301d386ba0
|
9 years ago
|
|
Correct Markdown-style footnote w/ HTML style one.
This footnote is now correctly formatted in HTML, with links back and forth, as well as a jQuery UI tooltip popup for the footnote.
|
|
bkuhn
|
c41a897be2ce
|
9 years ago
|
|
Simply clear error for monthly donation.
Since the error messages relate only to the amount entered, the error message should be cleared when switching to the monthly giving option.
|
|
bkuhn
|
c54683398484
|
9 years ago
|
|
Amount starts class "valid", when default accepted
The default amount of $120 appears in the amount field, but the class "valid" was usually only added when the user changes the amount.
The valid class must be added at the start to ensure someone simply clicking with the default still can donate.
|
|
bkuhn
|
090fb9f268a0
|
9 years ago
|
|
Larger error message when submitting bad amount.
This addition to the Javascript and text ensures a clear message to the user of a Javascript-enabled browser that there is an issue with the amount. Also, it prevents submission of the form until the amount is correct.
A user with Javascript disabled can circumvent these validation steps; however, the worst-case scenario is that they make a donation for less than $120 that is categorized in Conservancy's internal system as a Supporter donation, and we'll be adding internal checks to find that.
|
|
bkuhn
|
b2c18cc59e52
|
9 years ago
|
|
Correct regular expression and comma thing fully.
parseInt() likely wants no commas, so we use a value without it, and the regular expression now seems to properly match was PayPal will take as valid.
|
|
bkuhn
|
3438812e0049
|
9 years ago
|
|
|
|
bkuhn
|
8b16abf981e5
|
9 years ago
|
|
|
|
bkuhn
|
b90413809f26
|
9 years ago
|
|
Subscriptions for monthly supporters.
There are now two options at the bottom of the page, annual and monthly supporters.
In addition, there is Javascript code to cause the annual and monthly items disappear and reappear upon selection either in the donate box or the selector above the items.
I tested this in links and it seems to degrade reasonably well.
|
|
bkuhn
|
9bfb5e10dec2
|
9 years ago
|
|
Rework form with error messages & basic validation
Since PayPal cannot seem to be cajoled into verifying a minimum amount, we have to do it here with Javascript. This isn't perfect validation: the form can currently still be submitted with an amount less than $120, but at least this way Javascript-enabled browsers might prevent some folks from doing that.
|
|
bkuhn
|
01eb8c80c8c1
|
9 years ago
|
|
|