aboutsummaryrefslogtreecommitdiff
path: root/request-edit.js
diff options
context:
space:
mode:
Diffstat (limited to 'request-edit.js')
-rw-r--r--request-edit.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/request-edit.js b/request-edit.js
index 8ed5336..ad862c5 100644
--- a/request-edit.js
+++ b/request-edit.js
@@ -18,9 +18,11 @@ function btnAction(action, btn) {
operatorPhone: trData[11].firstElementChild.innerText
}
- if (actionData.action == 'delete')
- if (confirm("Are you sure you want to delete reservation #" + actionData.id + " made by " + actionData.operatorCall + "?"))
+ if (actionData.action == 'delete') {
+ if (confirm("Are you sure you want to delete reservation #" + actionData.id + " made by " + actionData.operatorCall + "?") === true)
trDom.remove();
+ else return;
+ }
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {