diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 12:57:25 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-04-08 12:57:25 +0200 |
commit | 330c4374f6e1824c265fb77ec3ae4e34c297bf85 (patch) | |
tree | c90921645798c721755b3f7492b234f7a899472e /js/campus.js | |
parent | e646e25937bfdcc2c72f458569be966b3e06f530 (diff) | |
download | site-330c4374f6e1824c265fb77ec3ae4e34c297bf85.tar.gz |
Remove spaces from URLs (improve slugs)
Diffstat (limited to 'js/campus.js')
-rw-r--r-- | js/campus.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/campus.js b/js/campus.js index 234e1b9..8d6846b 100644 --- a/js/campus.js +++ b/js/campus.js @@ -33,7 +33,7 @@ define(['campus-coords', 'd3'], function(coords, d3) { .enter() .append('a') .attr('xlink:href', function(d) { - return '#/campus/' + d.name; + return '#/campus/' + d.id; }) .append('polygon') .attr('class', 'building') @@ -53,7 +53,7 @@ define(['campus-coords', 'd3'], function(coords, d3) { var citems = document.getElementById('campus-items'); coords.forEach(function(building) { var header = document.createElement('h2'); - header.id = '/campus/' + building.name; + header.id = '/campus/' + building.id; header.textContent = building.name; citems.appendChild(header); |