diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -125,8 +125,13 @@ function add_section_n(cnum, name, synon var cssclasses = 'section class' + cnum + ' ' + safe_css_class('slot-' + slot); var last_tr; - if(type == 'lab') - cssclasses += ' lab'; + /* + * Add the type of the course to the CSS if it's a valid (and + * _clean-looking_ CSS class). Supports things like Cedarville's + * coloration of labs/ILB. + */ + if (/[a-z-]+/.exec(type) != null) + cssclasses += ' type-' + type; var section_html = '