uggly fix for Opera

This commit is contained in:
Loïc Chapeaux
2002-02-09 11:17:05 +00:00
parent df0a1f259f
commit 33343cb936

View File

@@ -332,7 +332,9 @@ function setPointer(theRow, thePointerColor, theNormalBgColor)
var rowCellsCnt = theCells.length; var rowCellsCnt = theCells.length;
var currentColor = null; var currentColor = null;
var newColor = 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'); currentColor = theCells[0].getAttribute('bgcolor');
newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase()) newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
? theNormalBgColor ? theNormalBgColor