Compare commits
2 Commits
ef540e70b3
...
fcaa554c44
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fcaa554c44 | ||
![]() |
8aa00724a9 |
@ -228,7 +228,10 @@ if ($_POST['subcd'] == "y") {
|
||||
|
||||
$test = send_mail ("contact@fsfe.org", $_POST['firstname'] . " " . $_POST['lastname'] . " <" . $_POST['mail'] . ">", $subject, $msg, NULL, file_get_contents($outfile), "application/vnd.oasis.opendocument.text", "letter.odt");
|
||||
|
||||
if (isset($_POST['donate']) && ($_POST['donate'] > 0)) {
|
||||
/**
|
||||
* Only process donations starting from 10 euro.
|
||||
*/
|
||||
if (isset($_POST['donate']) && ((int) $_POST['donate']) > 10) {
|
||||
relay_donation($_POST['donationID']);
|
||||
} else {
|
||||
header("Location: http://fsfe.org/contribute/spreadtheword-orderthanks.$lang.html");
|
||||
|
@ -20,18 +20,15 @@
|
||||
}
|
||||
|
||||
form.addEventListener('submit', function (event) {
|
||||
var value = donationAmountInput.value;
|
||||
var value = donationAmountInput.value.trim();
|
||||
|
||||
if (value) {
|
||||
if (value !== '') {
|
||||
var parsedValue = parseInt(value, 10);
|
||||
|
||||
if (parsedValue < 10) {
|
||||
if (parsedValue > 0 && parsedValue < 10) {
|
||||
setDonateError();
|
||||
event.preventDefault();
|
||||
}
|
||||
} else {
|
||||
setDonateError();
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user