Add dedicated classes to first/last (daily) time slots.
This commit is contained in:
parent
ff5c0845bc
commit
a2a14cb84c
1 changed files with 8 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue