mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 00:51:25 -05:00
Re-order a couple things at the top of the dashboard js
This commit is contained in:
parent
1646479448
commit
57170cd6d4
1 changed files with 4 additions and 3 deletions
7
resources/assets/js/dashboard.js
vendored
7
resources/assets/js/dashboard.js
vendored
|
@ -1,6 +1,10 @@
|
|||
// global variables
|
||||
const $loadingModal = $("#loading-modal"),
|
||||
fadeTime = 250;
|
||||
|
||||
// declare a reverse function for jquery
|
||||
jQuery.fn.reverse = [].reverse;
|
||||
|
||||
// show the loading modal
|
||||
function showLoadingModal() {
|
||||
$loadingModal.css({
|
||||
|
@ -18,9 +22,6 @@ function hideLoadingModal() {
|
|||
}, fadeTime);
|
||||
}
|
||||
|
||||
// declare a reverse function for jquery
|
||||
jQuery.fn.reverse = [].reverse;
|
||||
|
||||
// show the confirmation modal and run the supplied command if confirm is pressed
|
||||
function askConfirmation(message, command, cancelCommand) {
|
||||
const $confirmationModal = $("#confirmation-modal"),
|
||||
|
|
Loading…
Reference in a new issue