diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index 6860692..77704e2 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -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); };