aboutsummaryrefslogtreecommitdiff
path: root/request-edit.js
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-05 14:32:19 +0200
committerMateja <mail@matejamaric.com>2020-10-05 14:32:19 +0200
commit2fec3cd2d3d302dea152569a45e164aa6c7ec6a8 (patch)
tree895b76b07fb3edf4e54bf77748fd6b57aaaf3a6e /request-edit.js
parent61f1ca8df73673e42fa52e5b73ab8c9fa3dab5fb (diff)
downloadold-php-yota-2fec3cd2d3d302dea152569a45e164aa6c7ec6a8.tar.gz
old-php-yota-2fec3cd2d3d302dea152569a45e164aa6c7ec6a8.zip
Callsign and query fixes
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 () {