Attempt at a fix for error that prevented sidebox menu from sliding out in IE8

This commit is contained in:
Nathan Gray 2010-09-16 20:06:48 +00:00
parent d01499df7b
commit 4517bafcb6

View File

@ -104,7 +104,7 @@ function ypSlideOutMenu(id, dir, left, top, width, height,pos)
//temporarly hide all selectboxes to fix IE bug with z-index
if(document.all)
if(document.all && document.all instanceof Array)
{
for (var i=0; i<document.all.length; i++) {
o = document.all(i)
@ -115,7 +115,6 @@ function ypSlideOutMenu(id, dir, left, top, width, height,pos)
}
}
if (obj.container) {
obj.over = true
@ -155,7 +154,7 @@ function ypSlideOutMenu(id, dir, left, top, width, height,pos)
if (obj.open && !obj.aniTimer) obj.startSlide(false)
//show all selectboxes again to fix IE bug with z-index
if(document.all)
if(document.all && document.all instanceof Array)
{
for (var i=0; i<document.all.length; i++) {
o = document.all(i)