Commit 49ad694b authored by sajolida's avatar sajolida
Browse files

Try to count download of ISO image and Torrent file

This is doesn't work, see #14922#note-7 but I'm pushing this commit so
that reviewers can help me investigate the issue.
parent 94b21e06
......@@ -269,24 +269,28 @@ document.addEventListener("DOMContentLoaded", function() {
// Display "Verify with your browser" when ISO image is clicked
document.getElementById("download-iso").onclick = function() {
hitCounter("download-iso");
toggleDirectBitTorrent("direct");
resetVerificationResult();
}
// Display "Verify with your browser" when "I already" is clicked
document.getElementById("already-downloaded").onclick = function() {
hitCounter("already-downloaded");
toggleDirectBitTorrent("direct");
resetVerificationResult();
}
// Reset verification when downloading again after failure
document.getElementById("download-iso-again").onclick = function() {
hitCounter("download-iso-again");
toggleDirectBitTorrent("direct");
resetVerificationResult();
}
// Display "Verify with BitTorrent" when Torrent file is clicked
document.getElementById("download-torrent").onclick = function() {
hitCounter("download-torrent");
toggleDirectBitTorrent("bittorrent");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment