forked from extern/egroupware
disable the IE z-index bugfix because some people don't like it I don't care because I don't use IE ;)
This commit is contained in:
parent
8d2fa3f4cd
commit
0c9e59afaf
@ -15,6 +15,9 @@
|
||||
//var isNS4 = false;
|
||||
//var isNS6 = false;
|
||||
// constructor
|
||||
|
||||
var IEzindexworkaround=false; // set this true to enable the IE z-index bugfix
|
||||
|
||||
function ypSlideOutMenu(id, dir, left, top, width, height,pos)
|
||||
{
|
||||
|
||||
@ -148,16 +151,17 @@ function ypSlideOutMenu(id, dir, left, top, width, height,pos)
|
||||
ypSlideOutMenu.showMenu = function(id)
|
||||
{
|
||||
//temporarly hide all selectboxes to fix IE bug with z-index
|
||||
if(document.all)
|
||||
if(IEzindexworkaround && document.all)
|
||||
{
|
||||
for (var i=0; i<document.all.length; i++) {
|
||||
o = document.all(i)
|
||||
if (o.type == 'select-one' || o.type == 'select-multiple') {
|
||||
// todo: add check for select in div?
|
||||
if (o.style) o.style.display = 'none';
|
||||
if (o.style) o.style.display = 'none';// todo: add check for select in div?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ypSlideOutMenu.ShowL(id+'Container');
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user