javascript hide overlay with auto hide if element id given
This commit is contained in:
@@ -638,8 +638,9 @@ function showOverlayBoxLayers(el_id)
|
|||||||
* if we are 10 (GL_OB_BASE) or below hide the overlayIndex
|
* if we are 10 (GL_OB_BASE) or below hide the overlayIndex
|
||||||
* and set zIndex and GL_OB_S to 0
|
* and set zIndex and GL_OB_S to 0
|
||||||
* else just set zIndex to the new GL_OB_S value
|
* else just set zIndex to the new GL_OB_S value
|
||||||
|
* @param {String} el_id Target to hide layer
|
||||||
*/
|
*/
|
||||||
function hideOverlayBoxLayers()
|
function hideOverlayBoxLayers(el_id)
|
||||||
{
|
{
|
||||||
console.log('HIDE overlaybox: %s', GL_OB_S);
|
console.log('HIDE overlaybox: %s', GL_OB_S);
|
||||||
// remove on layer
|
// remove on layer
|
||||||
@@ -654,6 +655,10 @@ function hideOverlayBoxLayers()
|
|||||||
// if OB_S > 0 then set new zIndex
|
// if OB_S > 0 then set new zIndex
|
||||||
$('#overlayBox').css('zIndex', GL_OB_S);
|
$('#overlayBox').css('zIndex', GL_OB_S);
|
||||||
}
|
}
|
||||||
|
if (el_id) {
|
||||||
|
$('#' + el_id).hide();
|
||||||
|
$('#' + el_id).css('zIndex', 0);
|
||||||
|
}
|
||||||
console.log('HIDE overlaybox NEW zIndex: %s', $('#overlayBox').css('zIndex'));
|
console.log('HIDE overlaybox NEW zIndex: %s', $('#overlayBox').css('zIndex'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user