Commit 4727d6c1 authored by sajolida's avatar sajolida

Same as f5e9792b but for Torrents

parent 002ceb66
......@@ -312,16 +312,16 @@ document.addEventListener("DOMContentLoaded", function() {
}
// Display "Verify with BitTorrent" when Torrent file is clicked
document.getElementById("download-img-torrent").onclick = function(e) { displayBitTorrentVerification(e); }
document.getElementById("download-iso-torrent").onclick = function(e) { displayBitTorrentVerification(e); }
document.getElementById("download-img-torrent").onclick = function(e) { displayBitTorrentVerification(e, this); }
document.getElementById("download-iso-torrent").onclick = function(e) { displayBitTorrentVerification(e, this); }
function displayBitTorrentVerification(e) {
function displayBitTorrentVerification(e, elm) {
try {
e.preventDefault();
hitCounter("download-torrent");
toggleDirectBitTorrent("bittorrent");
} finally {
window.location = this.getAttribute("href");
window.location = elm.getAttribute("href");
}
}
......
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