summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-11-25 08:42:00 +0100
committerGery Debongnie <ged@openerp.com>2013-11-25 08:42:00 +0100
commit2944752844ee3a98b4a5e0a2c35634a034b88acb (patch)
tree263e0268a48e529e7da389bc5803160810641b0e /addons/web_graph/static/src/js
parent8396a03759741dfd6b10f7f5b339df8524cb80c6 (diff)
[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
Diffstat (limited to 'addons/web_graph/static/src/js')
-rw-r--r--addons/web_graph/static/src/js/graph.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 146a9d3e865..e1234e6f489 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -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);
}
});