From 33343cb936e5fd55e9e7159e5ebcd01de091a28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 9 Feb 2002 11:17:05 +0000 Subject: [PATCH] uggly fix for Opera --- libraries/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/functions.js b/libraries/functions.js index d57dd62d6..97fa4627f 100644 --- a/libraries/functions.js +++ b/libraries/functions.js @@ -332,7 +332,9 @@ function setPointer(theRow, thePointerColor, theNormalBgColor) var rowCellsCnt = theCells.length; var currentColor = null; var newColor = null; - if (typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') { + // Opera does not return valid values with "getAttribute" + if (typeof(window.opera) == 'undefined' + && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') { currentColor = theCells[0].getAttribute('bgcolor'); newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase()) ? theNormalBgColor