Tweaks
This commit is contained in:
23
tower.php
23
tower.php
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user