6 <title>QBT_TR(Edit web seed)QBT_TR[CONTEXT=HttpServer]
</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 "Enter": function(event
) {
18 $("editWebSeedButton").click();
19 event
.preventDefault();
21 "Escape": function(event
) {
22 window
.parent
.qBittorrent
.Client
.closeWindows();
23 event
.preventDefault();
25 "Esc": function(event
) {
26 window
.parent
.qBittorrent
.Client
.closeWindows();
27 event
.preventDefault();
32 const origUrl
= new URI().getData("url");
33 $("url").value
= decodeURIComponent(origUrl
);
36 $("editWebSeedButton").addEvent("click", (e
) => {
38 const hash
= new URI().getData("hash");
40 url
: "api/v2/torrents/editWebSeed",
45 newUrl
: encodeURIComponent($("url").value
.trim()),
48 window
.parent
.qBittorrent
.Client
.closeWindows();
57 <div style=
"text-align: center;">
59 <label for=
"url">QBT_TR(Web seed URL:)QBT_TR[CONTEXT=PropertiesWidget]
</label>
60 <div style=
"text-align: center; padding-top: 10px;">
61 <input type=
"text" id=
"url" style=
"width: 90%;">
64 <input type=
"button" value=
"QBT_TR(Edit)QBT_TR[CONTEXT=HttpServer]" id=
"editWebSeedButton">