This commit is contained in:
2025-03-31 10:23:40 +00:00
parent f6ba990e1c
commit f6368f12f1
2 changed files with 29 additions and 6 deletions

View File

@@ -213,11 +213,24 @@ function markLanded(id) {
}
function markCancel(id) {
const page = `action.php?op=cancel&id=${id}`;
var xhr = new XMLHttpRequest();
xhr.open("GET", page, false); // 'false' makes the request synchronous
xhr.send();
window.location.reload(true);
Swal.fire({
title: "Are you sure?",
text: "This action will cancel the PPR.",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#3085d6",
cancelButtonColor: "#d33",
confirmButtonText: "Yes, cancel it!",
cancelButtonText: "No, keep it"
}).then((result) => {
if (result.isConfirmed) {
const page = `action.php?op=cancel&id=${id}`;
var xhr = new XMLHttpRequest();
xhr.open("GET", page, false); // 'false' makes the request synchronous
xhr.send();
window.location.reload(true);
}
});
}
function openDetail(id) {