Bug #15829
closedHighlight un list tree doesn't work on Internet Explorer
0%
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)
Files