added delete confirmations

This commit is contained in:
Rostislav Raykov
2024-12-08 14:40:45 +02:00
parent 541b094a06
commit 788209e442
+4
View File
@@ -48,6 +48,10 @@ document.addEventListener("DOMContentLoaded", function () {
}
});
function confirmDelete() {
return confirm("Are you sure you want to delete this file? This action cannot be undone.");
}
function updateCheckboxState(event, checkbox) {
event.preventDefault();
const hiddenField = checkbox.form.querySelector('input[name="keepIndefinitely"][type="hidden"]');