Project

General

Profile

Actions

Bug #15707

closed

Page highlighting for alt_db_navframe

Added by Michiel Roos about 18 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2006-02-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

navFrame.patch (2.01 KB) navFrame.patch Administrator Admin, 2006-12-13 17:25
bug_002677.patch (2.67 KB) bug_002677.patch Administrator Admin, 2007-02-07 17:18
Actions

Also available in: Atom PDF