Compare commits

..

No commits in common. "c6d8d64a4136c2c272866044f9f315cbc823276e" and "505281f4e3d0411a0ccf391894fa0610d33870ae" have entirely different histories.

View File

@ -356,13 +356,6 @@ function displayFullSchedule() {
} }
function displayIndividualSchedule(person) { function displayIndividualSchedule(person) {
if (person.kind === 'staff' && !schedule.all_staff.includes(person.name)
|| person.kind === 'student' && !schedule.all_students.includes(person.name)) {
updateHash({person: undefined});
displaySchedule();
return;
}
if (hash.day) { if (hash.day) {
const grid = schedule.gridFor(person, hash.day); const grid = schedule.gridFor(person, hash.day);
const title = document.createElement('h1'); const title = document.createElement('h1');
@ -453,9 +446,6 @@ async function refreshDisplay() {
function displaySchedule() { function displaySchedule() {
utils.clearChildren(schedulesDiv); utils.clearChildren(schedulesDiv);
if (hash.day && !schedule.all_days.includes(hash.day)) {
updateHash({day: undefined});
}
if (!hash.person) { if (!hash.person) {
displayFullSchedule(); displayFullSchedule();
} else if (hash.person.kind) { } else if (hash.person.kind) {