From 4727d6c1e27e1af1b1cc8d2ff1e2bab7766a541a Mon Sep 17 00:00:00 2001 From: sajolida Date: Tue, 15 Jan 2019 21:19:54 +0000 Subject: [PATCH] Same as f5e9792b71 but for Torrents --- wiki/src/install/inc/js/download.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wiki/src/install/inc/js/download.js b/wiki/src/install/inc/js/download.js index 6543c9c5f69..9826b786952 100644 --- a/wiki/src/install/inc/js/download.js +++ b/wiki/src/install/inc/js/download.js @@ -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"); } } -- 2.11.4.GIT