6 <title>QBT_TR(Add trackers)QBT_TR[CONTEXT=TrackersAdditionDialog]
</title>
7 <link rel=
"stylesheet" href=
"css/style.css?v=${CACHEID}" type=
"text/css">
8 <script src=
"scripts/lib/MooTools-Core-1.6.0-compat-compressed.js"></script>
9 <script src=
"scripts/lib/MooTools-More-1.6.0-compat-compressed.js"></script>
13 window
.addEventListener("DOMContentLoaded", () => {
15 defaultEventType
: "keydown",
17 "Escape": function(event
) {
18 window
.parent
.qBittorrent
.Client
.closeWindows();
19 event
.preventDefault();
21 "Esc": function(event
) {
22 window
.parent
.qBittorrent
.Client
.closeWindows();
23 event
.preventDefault();
28 $("trackersUrls").focus();
29 $("addTrackersButton").addEventListener("click", (e
) => {
33 const hash
= new URI().getData("hash");
35 url
: "api/v2/torrents/addTrackers",
39 urls
: $("trackersUrls").value
41 onComplete: function() {
42 window
.parent
.qBittorrent
.Client
.closeWindows();
51 <div style=
"text-align: center; margin-top: 10px;">
52 <label for=
"trackersUrls">QBT_TR(List of trackers to add (one per line):)QBT_TR[CONTEXT=TrackersAdditionDialog]
</label>
53 <textarea name=
"list" id=
"trackersUrls" rows=
"10" cols=
"1"></textarea>
54 <input type=
"button" value=
"QBT_TR(Add)QBT_TR[CONTEXT=HttpServer]" id=
"addTrackersButton">