Compare commits
No commits in common. "fcaa554c446f7f8ee5fb83658e556d75010bcdcd" and "ef540e70b30370e1271be937464b749388ddfe4a" have entirely different histories.
fcaa554c44
...
ef540e70b3
@ -228,10 +228,7 @@ 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");
|
$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']);
|
relay_donation($_POST['donationID']);
|
||||||
} else {
|
} else {
|
||||||
header("Location: http://fsfe.org/contribute/spreadtheword-orderthanks.$lang.html");
|
header("Location: http://fsfe.org/contribute/spreadtheword-orderthanks.$lang.html");
|
||||||
|
@ -20,15 +20,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
form.addEventListener('submit', function (event) {
|
form.addEventListener('submit', function (event) {
|
||||||
var value = donationAmountInput.value.trim();
|
var value = donationAmountInput.value;
|
||||||
|
|
||||||
if (value !== '') {
|
if (value) {
|
||||||
var parsedValue = parseInt(value, 10);
|
var parsedValue = parseInt(value, 10);
|
||||||
|
|
||||||
if (parsedValue > 0 && parsedValue < 10) {
|
if (parsedValue < 10) {
|
||||||
setDonateError();
|
setDonateError();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
setDonateError();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user