2022-10-19 04:39:32 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="${LANG}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2022-11-30 19:49:48 +01:00
|
|
|
<title>Deletion confirmation</title>
|
2022-10-19 04:39:32 +02:00
|
|
|
<link rel="stylesheet" href="css/style.css?v=${CACHEID}" type="text/css" />
|
2023-03-14 02:31:54 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/Core.css?v=${CACHEID}" />
|
2022-10-19 04:39:32 +02:00
|
|
|
<script src="scripts/lib/MooTools-Core-1.6.0-compat-compressed.js"></script>
|
|
|
|
<script src="scripts/lib/MooTools-More-1.6.0-compat-compressed.js"></script>
|
|
|
|
<script>
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
window.addEvent('domready', () => {
|
|
|
|
const paths = new URI().getData('paths').split('|');
|
|
|
|
$('cancelBtn').focus();
|
|
|
|
$('cancelBtn').addEvent('click', (e) => {
|
|
|
|
new Event(e).stop();
|
|
|
|
window.parent.closeWindows();
|
|
|
|
});
|
|
|
|
$('confirmBtn').addEvent('click', (e) => {
|
|
|
|
new Event(e).stop();
|
|
|
|
let completionCount = 0;
|
|
|
|
paths.forEach((path) => {
|
|
|
|
new Request({
|
|
|
|
url: 'api/v2/rss/removeItem',
|
|
|
|
noCache: true,
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
path: decodeURIComponent(path)
|
|
|
|
},
|
|
|
|
onComplete: (response) => {
|
|
|
|
++completionCount;
|
|
|
|
if (completionCount === paths.length) {
|
|
|
|
window.parent.qBittorrent.Rss.updateRssFeedList();
|
|
|
|
window.parent.closeWindows();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).send();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-06-28 02:14:01 +02:00
|
|
|
<div style="padding: 1px 10px 0px 1px;">
|
2022-11-30 19:49:48 +01:00
|
|
|
<p>Are you sure you want to delete the selected RSS feeds?</p>
|
2022-10-19 04:39:32 +02:00
|
|
|
<div style="text-align: right;">
|
2023-06-28 02:14:01 +02:00
|
|
|
<input style="padding: 2px 2px;" class="button" type="button" id="cancelBtn" value="No" />
|
|
|
|
<input style="padding: 2px 2px;" class="button" type="button" id="confirmBtn" value="Yes" />
|
2022-10-19 04:39:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|