Skip to content
Snippets Groups Projects
Commit 833202bb authored by Tim Steiner's avatar Tim Steiner
Browse files

Make the Computer Science department show up in both Arts and Sciences and...

Make the Computer Science department show up in both Arts and Sciences and Engineering colleges in curriculum search.
parent ef031acb
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,13 @@ function handleChangeSelectHierarchy()
var selectedCollegeId = collegeSelect.options[collegeSelect.selectedIndex].value;
var options = departmentSelect.getElementsByTagName('option');
for (var i = options.length - 1; i >= 0; i--) {
if (options[i].getAttribute('rel') == selectedCollegeId || collegeSelect.value == 0 || options[i].value == 0) {
// hack to make Computer Science show up in both Arts and Sciences and Engineering
var multiCollegeDepartmentOverride = false;
if (options[i].value == 13 && selectedCollegeId == 2) {
multiCollegeDepartmentOverride = true;
}
if (options[i].getAttribute('rel') == selectedCollegeId || collegeSelect.value == 0 || options[i].value == 0 || multiCollegeDepartmentOverride) {
options[i].style.display = '';
} else {
options[i].style.display = 'none';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment