Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/donate.html

Issue 29334044: Issue 219 - Donation page is broken in IE8 (Closed)
Patch Set: Fixed code style issues Created Jan. 28, 2016, 3:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | templates/default.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
})();
« no previous file with comments | « no previous file | templates/default.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld