edit*js files update

This commit is contained in:
Clemens Schwaighofer
2020-03-03 09:41:49 +09:00
parent a86eaf0f02
commit 899ddc011c
2 changed files with 24 additions and 4 deletions

View File

@@ -446,7 +446,7 @@ function actionIndicatorHide(loc, overlay = true)
} }
/** /**
* shows the overlay box * shows the overlay box or if already visible, bumps the zIndex to 100
*/ */
function overlayBoxShow() function overlayBoxShow()
{ {
@@ -459,7 +459,7 @@ function overlayBoxShow()
} }
/** /**
* hides the overlay box * hides the overlay box or if zIndex is 100 bumps it down to previous level
*/ */
function overlayBoxHide() function overlayBoxHide()
{ {
@@ -481,6 +481,16 @@ function setOverlayBox()
} }
} }
/**
* opposite of set, always hides overlay box
*/
function hideOverlayBox()
{
if ($('#overlayBox').is(':visible')) {
$('#overlayBox').hide();
}
}
/** /**
* the abort call, clears the action box and hides it and the overlay box * the abort call, clears the action box and hides it and the overlay box
*/ */

View File

@@ -505,7 +505,7 @@ function actionIndicatorHide(loc = '')
} }
/** /**
* shows the overlay box * shows the overlay box or if already visible, bumps the zIndex to 100
*/ */
function overlayBoxShow() function overlayBoxShow()
{ {
@@ -518,7 +518,7 @@ function overlayBoxShow()
} }
/** /**
* hides the overlay box * hides the overlay box or if zIndex is 100 bumps it down to previous level
*/ */
function overlayBoxHide() function overlayBoxHide()
{ {
@@ -543,6 +543,16 @@ function setOverlayBox()
$('overlayBox').show(); $('overlayBox').show();
} }
/**
* opposite of set, always hides overlay box
*/
function hideOverlayBox()
{
if ($('overlayBox').visible()) {
$('overlayBox').hide();
}
}
/** /**
* the abort call, clears the action box and hides it and the overlay box * the abort call, clears the action box and hides it and the overlay box
*/ */