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>Clear downloaded episodes</title>
|
2022-10-19 04:39:32 +02:00
|
|
|
<link rel="stylesheet" href="css/style.css?v=${CACHEID}" type="text/css" />
|
|
|
|
<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 rules = new URI().getData('rules').split('|');
|
|
|
|
|
|
|
|
$('cancelBtn').focus();
|
|
|
|
$('cancelBtn').addEvent('click', (e) => {
|
|
|
|
new Event(e).stop();
|
|
|
|
window.parent.MochaUI.closeWindow(window.parent.$('clearRulesPage'));
|
|
|
|
});
|
|
|
|
$('confirmBtn').addEvent('click', (e) => {
|
|
|
|
new Event(e).stop();
|
|
|
|
let completionCount = 0;
|
|
|
|
rules.forEach((rule) => {
|
|
|
|
window.parent.qBittorrent.RssDownloader.modifyRuleState(decodeURIComponent(rule), 'previouslyMatchedEpisodes', [], () => {
|
|
|
|
++completionCount;
|
|
|
|
if (completionCount === rules.length) {
|
|
|
|
window.parent.qBittorrent.RssDownloader.updateRulesList();
|
|
|
|
window.parent.MochaUI.closeWindow(window.parent.$('clearRulesPage'));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div style="padding: 10px 10px 0px 10px;">
|
2022-11-30 19:49:48 +01:00
|
|
|
<p>Are you sure you want to clear the list of downloaded episodes for the selected rule?</p>
|
2022-10-19 04:39:32 +02:00
|
|
|
<div style="text-align: right;">
|
2022-11-30 19:49:48 +01:00
|
|
|
<input type="button" id="cancelBtn" value="No" />
|
|
|
|
<input type="button" id="confirmBtn" value="Yes" />
|
2022-10-19 04:39:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|