Don't remove confirmation modal header text until after it's finished fading out

This commit is contained in:
Kevin MacMartin 2018-06-26 20:58:03 -04:00
parent 5e9c5b39c9
commit 8ed853a024

View file

@ -36,14 +36,15 @@ function askConfirmation(message, command, cancelCommand) {
$cancelButton.off("click", closeConfirmationModal);
$confirmButton.off("click", confirmModal);
// clear the heading
$heading.empty();
// hide the modal
$confirmationModal.css({ opacity: 0 });
setTimeout(function() {
// set visibility to hidden
$confirmationModal.css({ visibility: "hidden" });
// clear the heading
$heading.empty();
}, fadeTime);
};