[IMP] adds slight color to expanded rows to make it easier to see the subrows (addon web_graph)

bzr revid: ged@openerp.com-20131125074200-6d3migzpl4x7c44s
This commit is contained in:
Gery Debongnie
2013-11-25 08:42:00 +01:00
parent 8396a03759
commit 2944752844
+5 -1
View File
@@ -310,7 +310,11 @@ instance.web_graph.GraphView = instance.web.View.extend({
if ((self.heat_map_mode) && (value !== undefined)) {
var color = Math.floor(50 + 205*(pivot.total - value)/pivot.total);
cell.css("background-color", "rgb(255," + color + "," + color + ")");
}
}
if (row.is_expanded && (row.path.length <= 2)) {
var color = row.path.length * 5 + 240;
cell.css("background-color", "rgb(" + [color, color, color].join() + ")");
}
html_row.append(cell);
}
});