mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -05:00
Don't remove confirmation modal header text until after it's finished fading out
This commit is contained in:
parent
5e9c5b39c9
commit
8ed853a024
1 changed files with 4 additions and 3 deletions
7
resources/assets/js/dashboard.js
vendored
7
resources/assets/js/dashboard.js
vendored
|
@ -36,14 +36,15 @@ function askConfirmation(message, command, cancelCommand) {
|
||||||
$cancelButton.off("click", closeConfirmationModal);
|
$cancelButton.off("click", closeConfirmationModal);
|
||||||
$confirmButton.off("click", confirmModal);
|
$confirmButton.off("click", confirmModal);
|
||||||
|
|
||||||
// clear the heading
|
|
||||||
$heading.empty();
|
|
||||||
|
|
||||||
// hide the modal
|
// hide the modal
|
||||||
$confirmationModal.css({ opacity: 0 });
|
$confirmationModal.css({ opacity: 0 });
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
// set visibility to hidden
|
||||||
$confirmationModal.css({ visibility: "hidden" });
|
$confirmationModal.css({ visibility: "hidden" });
|
||||||
|
|
||||||
|
// clear the heading
|
||||||
|
$heading.empty();
|
||||||
}, fadeTime);
|
}, fadeTime);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue