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() ...@@ -9,8 +9,10 @@ function onLoadPublicViewSearch()
document.getElementById('department').onchange = handleChangeSelectHierarchy; document.getElementById('department').onchange = handleChangeSelectHierarchy;
handleChangeSelectHierarchy(); handleChangeSelectHierarchy();
if (document.getElementById('printButton')) {
document.getElementById('printButton').onclick = function() { document.getElementById('printButton').onclick = function() {
window.print(); window.print();
};
} }
} }
...@@ -59,7 +61,7 @@ function handleChangeSelectHierarchy() ...@@ -59,7 +61,7 @@ function handleChangeSelectHierarchy()
optGroups = subjectSelect.getElementsByTagName('optgroup'); optGroups = subjectSelect.getElementsByTagName('optgroup');
for (var i = optGroups.length - 1; i >= 0; i--) { 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 = '' optGroups[i].style.display = ''
} else { } else {
optGroups[i].style.display = 'none'; optGroups[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