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

Updates to the new course search/history features.

parent 3365bf85
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,10 @@ function onLoadPublicViewSearch()
document.getElementById('department').onchange = handleChangeSelectHierarchy;
handleChangeSelectHierarchy();
document.getElementById('printButton').onclick = function() {
window.print();
if (document.getElementById('printButton')) {
document.getElementById('printButton').onclick = function() {
window.print();
};
}
}
......@@ -59,7 +61,7 @@ function handleChangeSelectHierarchy()
optGroups = subjectSelect.getElementsByTagName('optgroup');
for (var i = optGroups.length - 1; i >= 0; i--) {
if (selectedDepartments.inArray(optGroups[i].label) || collegeSelect.value == 0) {
if (selectedDepartments.inArray(optGroups[i].label)) {
optGroups[i].style.display = ''
} else {
optGroups[i].style.display = 'none';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment