Sync translations from Transifex and run lupdate
[qBittorrent.git] / src / webui / www / private / confirmfeeddeletion.html
blobdba355316a8b4c1c1274b8fd4fe1370788844184
1 <!DOCTYPE html>
2 <html lang="${LANG}">
4 <head>
5 <meta charset="UTF-8" />
6 <title>QBT_TR(Deletion confirmation)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>
11 'use strict';
13 window.addEvent('domready', () => {
14 const paths = new URI().getData('paths').split('|');
15 $('cancelBtn').focus();
16 $('cancelBtn').addEvent('click', (e) => {
17 new Event(e).stop();
18 window.parent.closeWindows();
19 });
20 $('confirmBtn').addEvent('click', (e) => {
21 new Event(e).stop();
22 let completionCount = 0;
23 paths.forEach((path) => {
24 new Request({
25 url: 'api/v2/rss/removeItem',
26 noCache: true,
27 method: 'post',
28 data: {
29 path: decodeURIComponent(path)
31 onComplete: (response) => {
32 ++completionCount;
33 if (completionCount === paths.length) {
34 window.parent.qBittorrent.Rss.updateRssFeedList();
35 window.parent.closeWindows();
38 }).send();
39 });
40 });
41 });
42 </script>
43 </head>
45 <body>
46 <div style="padding: 10px 10px 0px 10px;">
47 <p>QBT_TR(Are you sure you want to delete the selected RSS feeds?)QBT_TR[CONTEXT=RSSWidget]</p>
48 <div style="text-align: right;">
49 <input type="button" id="cancelBtn" value="QBT_TR(No)QBT_TR[CONTEXT=MainWindow]" />
50 <input type="button" id="confirmBtn" value="QBT_TR(Yes)QBT_TR[CONTEXT=MainWindow]" />
51 </div>
52 </div>
53 </body>
55 </html>