From 09129caa85025658ce47f49c38886c7ba0a46517 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 13 Feb 2013 23:20:43 +0100 Subject: Fix links in activity graph (#42) --- hyperkitty/static/css/hyperkitty.css | 3 +++ hyperkitty/static/js/hyperkitty.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'hyperkitty/static') diff --git a/hyperkitty/static/css/hyperkitty.css b/hyperkitty/static/css/hyperkitty.css index e7f14e0..7345e76 100644 --- a/hyperkitty/static/css/hyperkitty.css +++ b/hyperkitty/static/css/hyperkitty.css @@ -276,6 +276,9 @@ form.likeform { #graph h2 { text-align: center; } +#graph rect { + cursor: pointer; +} #fig { position: relative; diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js index f207254..eeec569 100644 --- a/hyperkitty/static/js/hyperkitty.js +++ b/hyperkitty/static/js/hyperkitty.js @@ -227,7 +227,7 @@ function activity_graph(dates, data, baseurl) { var bar = vis.add(pv.Bar) .data(data) - .event("click", function(n) self.location = baseurl + dates[this.index] + "/") + .event("click", function(n) { self.location = baseurl + "/" + dates[this.index].replace(/-/g, '/') + "/"; }) .left(function() x(this.index)) .width(x.range().band) .bottom(0) -- cgit