Issue Bug Closed

#15829Highlight un list tree doesn't work on Internet Explorer

GUERARD Vincent 03/15/06, 12:10 updated 08/12/06, 14:16

Description

On RC1 version, the hilight_row function change and use setAttribute to change class attribut field.

For IE, we must user “className” for the first arg, not “class”

On typo3/alt_db_navframe.php, line 278, replace old with new code :

/* old version */
// Remove old:
theObj = document.getElementById(top.fsMod.navFrameHighlightedID[frameSetModule]);
if (theObj) {
theObj.setAttribute(“class”, “”);
}

// Set new:
top.fsMod.navFrameHighlightedID[frameSetModule] = highLightID;
theObj = document.getElementById(highLightID);
if (theObj) {
theObj.setAttribute(“className”, “navFrameHL”);
}

/* new with correction */
// Remove old:
theObj = document.getElementById(top.fsMod.navFrameHighlightedID[frameSetModule]);
if (theObj) {
if (bw.ie5) {
theObj.setAttribute(“className”, “”);
} else {
theObj.setAttribute(“class”, “”);
}
}

// Set new:
top.fsMod.navFrameHighlightedID[frameSetModule] = highLightID;
theObj = document.getElementById(highLightID);
if (theObj) {
if (bw.ie5) {
theObj.setAttribute(“className”, “navFrameHL”);
} else {
theObj.setAttribute(“class”, “navFrameHL”);
}
}

Tested on Mozilla 1.5.0.1 and IE6.

(issue imported from #M2874)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.