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
Updated by Ernesto Baschny over 18 years ago
Sebastian: The change you introduced in:
doesn't work on IE, therefore there is no highlighting of the currently selected row in the page-hierarchy.
The solution from Vincend Guarard works fine. I just made a patch out of it. Could you try to get that included in HEAD with the core team?
Updated by Sebastian Kurfuerst over 18 years ago
hi,
I'll take care of it!
Greets, Sebastian
Updated by Sebastian Kurfuerst over 18 years ago
Hi Ernesto,
I am currently crammed with work, might it be possible for you to take care of that bug?
Thanks :)
Sebastian