diff options
Diffstat (limited to 'js/courses.js')
-rw-r--r-- | js/courses.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/courses.js b/js/courses.js index c973eae..0f43c4d 100644 --- a/js/courses.js +++ b/js/courses.js @@ -31,7 +31,7 @@ define(['assert'], function(assert) { { "id": "2IIC0", "name": "Business Information Systems","when": "Y3Q1" }, { "id": "2IID0", "name": "Web Analytics", "when": "Y3Q2" }, { "id": "2IO90", "name": "DBL Algorithms", "when": "Y3Q2" }, - { "id": "DS004", "name": "Bachelor End Project", "type": "bep", "when": "Y3Q3,Y3Q4" }, + { "id": "DS004", "name": "Bachelor End Project", "type": "bep", "when": "Y3Q3+Y3Q4" }, ]; var descriptions = { @@ -90,9 +90,12 @@ define(['assert'], function(assert) { assert (!(course.id in coursesById), "Course is already known: " + course.id); coursesById[course.id] = course; - course.when.split(",").forEach(function(when) { + course.when.split('+').forEach(function(when) { getQuartile(when).push(course); }); + + // link description too. + course.description = descriptions[course.id]; }); // fill in the remaining time slots |