diff --git a/event/static/js/calendar.js b/event/static/js/calendar.js index cdd104b..f5d84e4 100644 --- a/event/static/js/calendar.js +++ b/event/static/js/calendar.js @@ -167,9 +167,14 @@ class Calendar { }) .appendTo(this.timeSlotsContainerNode); - if (i > 0 && hour === 0) { - timeSlotHourNode.addClass("cal-new-day"); - timeSlotBlockNode.addClass("cal-new-day"); + if (hour === 23) { + timeSlotHourNode.addClass("cal-last-hour"); + timeSlotBlockNode.addClass("cal-last-hour"); + } + + if (hour === 0) { + timeSlotHourNode.addClass("cal-first-hour"); + timeSlotBlockNode.addClass("cal-first-hour"); } } }