5 <meta charset=
"UTF-8" />
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
.addEvent('domready', () => {
33 $('submitButton').addEvent('click', (e
) => {
36 const name
= $('name').value
.trim();
38 alert('QBT_TR(Name cannot be empty)QBT_TR[CONTEXT=HttpServer]');
41 $('submitButton').disabled
= true;
43 url
: 'api/v2/rss/setRule',
50 onSuccess
: (response
) => {
51 window
.parent
.qBittorrent
.RssDownloader
.updateRulesList();
52 window
.parent
.MochaUI
.closeWindow(window
.parent
.$('newRulePage'));
61 <div style=
"padding: 10px 10px 0px 10px;">
62 <p>QBT_TR(Please type the name of the new download rule.)QBT_TR[CONTEXT=AutomatedRssDownloader]
</p>
63 <input type=
"text" id=
"name" style=
"width: 320px;" />
64 <div style=
"text-align: center; padding-top: 10px;">
65 <input type=
"button" value=
"QBT_TR(OK)QBT_TR[CONTEXT=HttpServer]" id=
"submitButton" />