pricem/ESP-Website — comment on commit 40d8bf27bed122b8f812871207a96b31fb971705
File:  line 0
By pricem:

As my commit message hinted, I tried that. To elaborate on the issue, each section fetched via ajax_sections is associated with a category (good) but not timeslots (bad). We determine which timeslots are lunch periods by which have "lunch" classes assigned to them. The Ajax scheduler assumes that a schedule assignment involves both a time and a room, so this doesn't really fit into its data model. We could have changed our code to require that "lunch" classes are assigned a room, allowing the Javascript to determine which timeslots are for lunch without any additional information from the server, but that might cause confusion. In the long term, a better solution might be to have a different way of marking timeslots as lunch periods.