Index: pages/donate.html |
=================================================================== |
--- a/pages/donate.html |
+++ b/pages/donate.html |
@@ -442,9 +442,9 @@ |
function initializeDonationForm() |
{ |
formValues.name = getText("i18n_name"); |
- document.getElementById('form-payment').addEventListener("click", onSelectPayment); |
- document.getElementById("form-currency").addEventListener("click", updateCurrency); |
- document.getElementById("form").addEventListener("submit", onSubmitDonation); |
+ document.getElementById("form-payment").addEventListener("click", onSelectPayment, true); |
+ document.getElementById("form-currency").addEventListener("click", updateCurrency, true); |
+ document.getElementById("form").addEventListener("submit", onSubmitDonation, false); |
updateCurrency(); |
} |
@@ -453,7 +453,7 @@ |
if (event.target.tagName != "BUTTON") |
return; |
event.preventDefault(); |
- document.getElementById("form").className = (event.target || event.srcElement).className; |
+ document.getElementById("form").className = event.target.className; |
ensureMinPrice(); |
} |
@@ -465,7 +465,7 @@ |
provider(); |
} |
- document.addEventListener("DOMContentLoaded", initializeDonationForm); |
+ document.addEventListener("DOMContentLoaded", initializeDonationForm, false); |
})(); |