[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbutton/master] Bug 30783 - Use EOY URL for bottom link
commit ce795172f37ee2a43a8e7de0c0d06816143880ad
Author: Matthew Finkel <sysrqb@xxxxxxxxxxxxxx>
Date: Fri Nov 1 00:30:04 2019 +0000
Bug 30783 - Use EOY URL for bottom link
---
chrome/content/aboutTor/aboutTor-content.js | 4 ++++
chrome/content/aboutTor/aboutTor.xhtml | 3 ++-
chrome/skin/aboutTor.css | 6 ++++--
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/chrome/content/aboutTor/aboutTor-content.js b/chrome/content/aboutTor/aboutTor-content.js
index 18bc40f9..13aa39da 100644
--- a/chrome/content/aboutTor/aboutTor-content.js
+++ b/chrome/content/aboutTor/aboutTor-content.js
@@ -141,6 +141,10 @@ var AboutTorListener = {
content.document
.getElementById(ey2019_elem_id)
.setAttribute("href", ey2019_locale_url);
+
+ content.document
+ .getElementById(ey2019_elem_id + "_bottom")
+ .setAttribute("href", ey2019_locale_url);
}
};
diff --git a/chrome/content/aboutTor/aboutTor.xhtml b/chrome/content/aboutTor/aboutTor.xhtml
index e668b34e..92a941ac 100644
--- a/chrome/content/aboutTor/aboutTor.xhtml
+++ b/chrome/content/aboutTor/aboutTor.xhtml
@@ -91,7 +91,8 @@ window.addEventListener("pageshow", function() {
<div id="bottom">
<p id="donate" class="moreInfoLink">&aboutTor.donationBanner.line2e;
- <a href="https://donate.torproject.org/">&aboutTor.donationBanner.buttonA; »</a>
+ <a id="ey2019_donate_bottom" href="https://www.torproject.org/donate/donate-tbi-default">&aboutTor.donationBanner.buttonA;</a>
+ <a id="ey2019_donate_mobile_bottom" href="https://www.torproject.org/donate/donate-tbi-mobile-default">&aboutTor.donationBanner.buttonA;</a>
</p>
<p id="manual" class="showForManual moreInfoLink">&aboutTor.torbrowser_user_manual_questions.label;
<a id="manualLink" target="_blank">&aboutTor.torbrowser_user_manual_link.label;</a></p>
diff --git a/chrome/skin/aboutTor.css b/chrome/skin/aboutTor.css
index 28291d16..5da0e509 100644
--- a/chrome/skin/aboutTor.css
+++ b/chrome/skin/aboutTor.css
@@ -447,10 +447,12 @@ body[ey2019] .hideIfEY2019 {
display: none;
}
-body:not([mobile]) #ey2019_donate_mobile {
+body:not([mobile]) #ey2019_donate_mobile,
+body:not([mobile]) #ey2019_donate_mobile_bottom {
display: none;
}
-body[mobile] #ey2019_donate {
+body[mobile] #ey2019_donate,
+body[mobile] #ey2019_donate_bottom {
display: none;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits