From 899ddc011c3cb5221a59c541116fa01eba47b087 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 3 Mar 2020 09:41:49 +0900 Subject: [PATCH] edit*js files update --- www/layout/admin/javascript/edit.jq.js | 14 ++++++++++++-- www/layout/admin/javascript/edit.pt.js | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/www/layout/admin/javascript/edit.jq.js b/www/layout/admin/javascript/edit.jq.js index cba2e6cd..b243d06b 100644 --- a/www/layout/admin/javascript/edit.jq.js +++ b/www/layout/admin/javascript/edit.jq.js @@ -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() { @@ -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() { @@ -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 */ diff --git a/www/layout/admin/javascript/edit.pt.js b/www/layout/admin/javascript/edit.pt.js index e39d09a1..e3eb6f46 100644 --- a/www/layout/admin/javascript/edit.pt.js +++ b/www/layout/admin/javascript/edit.pt.js @@ -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() { @@ -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() { @@ -543,6 +543,16 @@ function setOverlayBox() $('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 */