traffic: Generalize max-row highlighter and use on all columns.

This commit is contained in:
Neil Williams
2013-01-14 19:59:15 -08:00
parent 74e7d5d725
commit a5c6333046
2 changed files with 4 additions and 2 deletions

View File

@@ -3990,7 +3990,7 @@ ul.tabmenu.formtab {
.traffic-table tfoot th,
.traffic-table tfoot td { font-style: italic; }
.traffic-table tr.max { border: 2px solid #FF8B60; }
.traffic-table tr.max { border-width: 2px; border-style: solid; }
.traffic-table tr.min { border: 2px solid #336699; }
.traffic-table tbody tr:nth-child(even) { background-color: #E0E0E0; }
.traffic-table tr.mean { font-style: italic; border-top: 1px solid; }

View File

@@ -77,8 +77,10 @@ r.timeseries = {
if (datum > 0)
newcol.append(bar)
if (i === 0 && datum !== 0 && datum === s.maxValue)
if (datum !== 0 && datum === s.maxValue) {
row.addClass('max')
.css('border-color', s.color)
}
})
row.append(newcol)