Handle the deleteBtn having an id instead of name == deleteBtn

pull/3805/head
Isaac Connor 2024-01-21 11:30:49 -05:00
parent da700a621a
commit 580aefdfee
1 changed files with 3 additions and 1 deletions

View File

@ -495,7 +495,9 @@ function configureDeleteButton( element ) {
}
}
}
form.deleteBtn.disabled = !checked;
let btn = form.deleteBtn;
if (!btn) btn = document.getElementById('deleteBtn');
if (btn) btn.disabled = !checked;
}
function confirmDelete( message ) {