diff options
author | Mateja <mail@matejamaric.com> | 2020-10-05 14:32:19 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-05 14:32:19 +0200 |
commit | 2fec3cd2d3d302dea152569a45e164aa6c7ec6a8 (patch) | |
tree | 895b76b07fb3edf4e54bf77748fd6b57aaaf3a6e /request-edit.js | |
parent | 61f1ca8df73673e42fa52e5b73ab8c9fa3dab5fb (diff) | |
download | old-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.js | 6 |
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 () { |