6 <title>QBT_TR(New rule name)QBT_TR[CONTEXT=AutomatedRssDownloader]
</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>
15 defaultEventType
: "keydown",
18 $("submitButton").click();
19 event
.preventDefault();
21 "Escape": (event
) => {
22 window
.parent
.MochaUI
.closeWindow(window
.parent
.$("newRulePage"));
23 event
.preventDefault();
26 window
.parent
.MochaUI
.closeWindow(window
.parent
.$("newRulePage"));
27 event
.preventDefault();
31 window
.addEventListener("DOMContentLoaded", () => {
33 $("submitButton").addEventListener("click", (e
) => {
38 const name
= $("name").value
.trim();
40 alert("QBT_TR(Name cannot be empty)QBT_TR[CONTEXT=HttpServer]");
43 $("submitButton").disabled
= true;
45 url
: "api/v2/rss/setRule",
51 onSuccess
: (response
) => {
52 window
.parent
.qBittorrent
.RssDownloader
.updateRulesList();
53 window
.parent
.MochaUI
.closeWindow(window
.parent
.$("newRulePage"));
62 <div style=
"padding: 10px 10px 0px 10px;">
63 <label for=
"name">QBT_TR(Please type the name of the new download rule.)QBT_TR[CONTEXT=AutomatedRssDownloader]
</label>
64 <input type=
"text" id=
"name" style=
"width: 320px;">
65 <div style=
"text-align: center; padding-top: 10px;">
66 <input type=
"button" value=
"QBT_TR(OK)QBT_TR[CONTEXT=HttpServer]" id=
"submitButton">