[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tpo/master] Update to script in line
commit 1ed2eadef7036169b82e5c520bda1af61aaaa484
Author: hiro <hiro@xxxxxxxxxxxxxx>
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>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits