Fix nextmatch hierarchy display

This commit is contained in:
Nathan Gray
2013-04-24 19:53:51 +00:00
parent 8262dc54e7
commit 4759d19d25
3 changed files with 59 additions and 13 deletions

View File

@ -498,7 +498,18 @@ var et2_dataview_controller = Class.extend({
var d = this.self.getDepth();
if (d > 0)
{
$j(tr).addClass("subentry level_" + d);
$j(tr).addClass("subentry");
$j("td:first",tr).children("div").last().addClass("level_" + d + " indentation");
if(this.entry.idx == 0)
{
// Set the CSS for the level - required so columns line up
var indent = $j("<span class='indentation'/>").appendTo(tr);
egw.css(".subentry td div.innerContainer.level_"+d,
"margin-right:" + (parseInt(indent.css("margin-right")) * d) + "px"
);
indent.remove();
}
}
var links = null;