Re-order a couple things at the top of the dashboard js

This commit is contained in:
Kevin MacMartin 2018-04-26 22:33:18 -04:00
parent 1646479448
commit 57170cd6d4

View file

@ -1,6 +1,10 @@
// global variables
const $loadingModal = $("#loading-modal"), const $loadingModal = $("#loading-modal"),
fadeTime = 250; fadeTime = 250;
// declare a reverse function for jquery
jQuery.fn.reverse = [].reverse;
// show the loading modal // show the loading modal
function showLoadingModal() { function showLoadingModal() {
$loadingModal.css({ $loadingModal.css({
@ -18,9 +22,6 @@ function hideLoadingModal() {
}, fadeTime); }, fadeTime);
} }
// declare a reverse function for jquery
jQuery.fn.reverse = [].reverse;
// show the confirmation modal and run the supplied command if confirm is pressed // show the confirmation modal and run the supplied command if confirm is pressed
function askConfirmation(message, command, cancelCommand) { function askConfirmation(message, command, cancelCommand) {
const $confirmationModal = $("#confirmation-modal"), const $confirmationModal = $("#confirmation-modal"),