Disable delete button on click so that we can't double click it.

pull/3953/head
Isaac Connor 2024-04-05 17:29:31 -04:00
parent 35ce814712
commit 7151771177
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ function onDownloadClick(evt) {
// Manage the DELETE CONFIRMATION modal button
function manageDelConfirmModalBtns() {
document.getElementById('delConfirmBtn').addEventListener('click', function onDelConfirmClick(evt) {
document.getElementById('delConfirmBtn').disabled = true; // prevent double click
if (!canEdit.Events) {
enoperm();
return;