Bug #15707
closedPage highlighting for alt_db_navframe
0%
Description
When using workspaces, the value $this->doHighlight is set to false. This breaks the highlighting of the current page. The reason that this is done is because the current row highlighting javascript works directly on the background color of the row. It is however more elegant to not disable doHighlight for workspaces, but to change the highlighting javascript to add or _subrtract a css classname for the current TR.
This makes it possible to choose your own highlighting style in your css file, for example by giving the image (which has class c-recIcon) a background:
.hilightRow .c-recIcon {
background-image: url(../backgrounds/icon.shadow.gif);
background-position: bottom center;
background-repeat: no-repeat;
text-decoration: none;
}
// Remove old:
theObj = document.getElementById(top.fsMod.navFrameHighlightedID[frameSetMod+ule]);
if (theObj) {
theObj.className=theObj.className.replace("hilightRow", "");
}
// Set new:
top.fsMod.navFrameHighlightedID[frameSetModule] = highLightID;
theObj = document.getElementById(highLightID);
if (theObj) {
theObj.className=theObj.className+" hilightRow";
}
(issue imported from #M2677)
Files