Add dedicated classes to first/last (daily) time slots.

This commit is contained in:
Daru13 2018-11-24 03:28:25 +01:00
parent ff5c0845bc
commit a2a14cb84c

View file

@ -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");
}
}
}