[tor-commits] [tpo/master] Update to script in line
hiro at torproject.org
hiro at torproject.org
Thu Apr 4 22:09:07 UTC 2019
commit 1ed2eadef7036169b82e5c520bda1af61aaaa484
Author: hiro <hiro at torproject.org>
Date: Fri Apr 5 00:09:01 2019 +0200
Update to script in line
---
templates/script-download.html | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/templates/script-download.html b/templates/script-download.html
index 1583d28..ce605ea 100644
--- a/templates/script-download.html
+++ b/templates/script-download.html
@@ -1 +1,14 @@
-<script src="{{ '/static/js/download.js'|asseturl }}" ></script>
+<script>
+ $(".downloadLink").click(
+ function(e) {
+ e.preventDefault();
+
+ //open download link in new page
+ window.open( $(this).attr("href") );
+
+ //redirect current page to success page
+ window.location="{{ '/thank-you'|url(alt=this.alt) }}";
+ window.focus();
+ }
+ );
+</script>
More information about the tor-commits
mailing list