mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -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"),
|
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"),
|
||||||
|
|
Loading…
Reference in a new issue