Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
4727d6c1
Commit
4727d6c1
authored
Jan 15, 2019
by
sajolida
Browse files
Same as
f5e9792b
but for Torrents
parent
002ceb66
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiki/src/install/inc/js/download.js
View file @
4727d6c1
...
...
@@ -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
"
);
}
}
...
...
sajolida
@sajolida
mentioned in issue
#16354 (closed)
·
May 14, 2020
mentioned in issue
#16354 (closed)
mentioned in issue #16354
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment