Compare commits
No commits in common. "c6d8d64a4136c2c272866044f9f315cbc823276e" and "505281f4e3d0411a0ccf391894fa0610d33870ae" have entirely different histories.
c6d8d64a41
...
505281f4e3
10
www/app.js
10
www/app.js
|
@ -356,13 +356,6 @@ function displayFullSchedule() {
|
|||
}
|
||||
|
||||
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) {
|
||||
const grid = schedule.gridFor(person, hash.day);
|
||||
const title = document.createElement('h1');
|
||||
|
@ -453,9 +446,6 @@ async function refreshDisplay() {
|
|||
|
||||
function displaySchedule() {
|
||||
utils.clearChildren(schedulesDiv);
|
||||
if (hash.day && !schedule.all_days.includes(hash.day)) {
|
||||
updateHash({day: undefined});
|
||||
}
|
||||
if (!hash.person) {
|
||||
displayFullSchedule();
|
||||
} else if (hash.person.kind) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user