diff options
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); |