mirror of
https://github.com/Carve/qbittorrent-webui-cjratliff.com.git
synced 2025-02-28 23:50:57 +01:00
58 lines
2.0 KiB
HTML
58 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="${LANG}">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Deletion confirmation</title>
|
|
<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.addEventListener("DOMContentLoaded", () => {
|
|
const paths = new URI().getData("paths").split("|");
|
|
$("cancelBtn").focus();
|
|
$("cancelBtn").addEventListener("click", (e) => {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
window.parent.qBittorrent.Client.closeWindows();
|
|
});
|
|
$("confirmBtn").addEventListener("click", (e) => {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
|
|
let completionCount = 0;
|
|
paths.forEach((path) => {
|
|
new Request({
|
|
url: "api/v2/rss/removeItem",
|
|
method: "post",
|
|
data: {
|
|
path: decodeURIComponent(path)
|
|
},
|
|
onComplete: (response) => {
|
|
++completionCount;
|
|
if (completionCount === paths.length) {
|
|
window.parent.qBittorrent.Rss.updateRssFeedList();
|
|
window.parent.qBittorrent.Client.closeWindows();
|
|
}
|
|
}
|
|
}).send();
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div style="padding: 10px 10px 0px 10px;">
|
|
<p>Are you sure you want to delete the selected RSS feeds?</p>
|
|
<div style="text-align: right;">
|
|
<input type="button" id="cancelBtn" value="No">
|
|
<input type="button" id="confirmBtn" value="Yes">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|