Display External IP Address in status bar
[qBittorrent.git] / src / webui / www / private / confirmtrackerdeletion.html
blob610eacee6de0865e44c5dd38d54e80900c5428c6
1 <!DOCTYPE html>
2 <html lang="${LANG}">
4 <head>
5 <meta charset="UTF-8">
6 <title>QBT_TR(Remove tracker)QBT_TR[CONTEXT=confirmDeletionDlg]</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>
10 <script>
11 "use strict";
13 window.addEventListener("DOMContentLoaded", () => {
14 const host = new URI().getData("host");
15 const urls = new URI().getData("urls");
16 $("confirmDeleteTrackerText").textContent = "QBT_TR(Are you sure you want to remove tracker %1 from all torrents?)QBT_TR[CONTEXT=TrackersFilterWidget]".replace("%1", `"${host}"`);
18 $("cancelBtn").focus();
19 $("cancelBtn").addEvent("click", (e) => {
20 e.stopPropagation();
21 window.parent.qBittorrent.Client.closeWindows();
22 });
23 $("confirmBtn").addEvent("click", (e) => {
24 e.stopPropagation();
25 const cmd = "api/v2/torrents/removeTrackers";
26 new Request({
27 url: cmd,
28 method: "post",
29 data: {
30 hash: "*",
31 urls: urls,
33 onComplete: () => {
34 window.parent.qBittorrent.Client.closeWindows();
36 }).send();
37 });
38 });
39 </script>
40 </head>
42 <body>
43 <div style="padding: 10px 10px 0px 10px;">
44 <p id="confirmDeleteTrackerText"></p>
45 <div style="text-align: right;">
46 <input type="button" id="cancelBtn" value="QBT_TR(Cancel)QBT_TR[CONTEXT=MainWindow]">
47 <input type="button" id="confirmBtn" value="QBT_TR(Remove)QBT_TR[CONTEXT=MainWindow]">
48 </div>
49 </div>
50 </body>
52 </html>