6 <title>QBT_TR(Please choose a folder name)QBT_TR[CONTEXT=RSSWidget]
</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 src=
"scripts/misc.js?locale=${LANG}&v=${CACHEID}"></script>
11 <script src=
"scripts/pathAutofill.js?v=${CACHEID}"></script>
16 defaultEventType
: "keydown",
19 $("submitButton").click();
20 event
.preventDefault();
22 "Escape": (event
) => {
23 window
.parent
.qBittorrent
.Client
.closeWindows();
24 event
.preventDefault();
27 window
.parent
.qBittorrent
.Client
.closeWindows();
28 event
.preventDefault();
32 window
.addEventListener("DOMContentLoaded", () => {
33 $("folderName").focus();
34 const path
= new URI().getData("path");
35 $("submitButton").addEventListener("click", (e
) => {
40 const folderName
= $("folderName").value
.trim();
41 if (folderName
=== "") {
42 alert("QBT_TR(Name cannot be empty)QBT_TR[CONTEXT=HttpServer]");
46 $("submitButton").disabled
= true;
49 url
: "api/v2/rss/addFolder",
52 path
: path
? (path
+ "\\" + folderName
) : folderName
54 onSuccess
: (response
) => {
55 window
.parent
.qBittorrent
.Rss
.updateRssFeedList();
56 window
.parent
.qBittorrent
.Client
.closeWindows();
58 onFailure
: (response
) => {
59 if (response
.status
=== 409)
60 alert(response
.responseText
);
61 $("submitButton").disabled
= false;
67 window
.qBittorrent
.pathAutofill
.attachPathAutofill();
72 <div style=
"padding: 10px 10px 0px 10px;">
73 <label for=
"folderName" style=
"font-weight: bold;">QBT_TR(Folder name:)QBT_TR[CONTEXT=RSSWidget]
</label>
74 <input type=
"text" id=
"folderName" class=
"pathDirectory" style=
"width: 320px;">
75 <div style=
"text-align: center; padding-top: 10px;">
76 <input type=
"button" value=
"QBT_TR(OK)QBT_TR[CONTEXT=HttpServer]" id=
"submitButton">