Updates to the cancel modal

This commit is contained in:
Jonathan Bobel
2025-05-07 15:06:39 -04:00
parent be038daa0a
commit abb3ba64d9
4 changed files with 81 additions and 12 deletions

View File

@@ -21,6 +21,12 @@
$submitButton.append('<span class="dot-anim" aria-hidden="true"></span>');
}
// Disable Cancel button too
const $cancelButton = $('button[name]').filter(function () {
return $(this).attr('name')?.toLowerCase() === 'cancel';
});
$cancelButton.prop('disabled', true);
setTimeout(() => {
renableSubmitButton($submitButton);
}, 10000); // fallback safety