Allow for multiple events to overlap

Currently the javascript only allows for a single event to be
"Current", add an additional check so we can have multiple events that
are current.

An alternate approach would be to use a generic 'Nominations' event but
this would require more change across multiple tools.

Change-Id: Ibae6644d9a11aa8ebeaac525706f24c3756778cd
This commit is contained in:
Tony Breeds 2019-05-28 14:12:55 +10:00
parent c6406fdbd5
commit 45d6d582e8
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ function setup_timeline() {
event_date = current_event_end;
startTime();
}
else if (now > current_event_start && now < current_event_end) {
set_event_status(current_event.name, 'Current');
}
else if (now < current_event_start) {
set_event_status(current_event.name, 'Future');
}