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"),
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"),