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);
|
.appendTo(this.timeSlotsContainerNode);
|
||||||
|
|
||||||
if (i > 0 && hour === 0) {
|
if (hour === 23) {
|
||||||
timeSlotHourNode.addClass("cal-new-day");
|
timeSlotHourNode.addClass("cal-last-hour");
|
||||||
timeSlotBlockNode.addClass("cal-new-day");
|
timeSlotBlockNode.addClass("cal-last-hour");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hour === 0) {
|
||||||
|
timeSlotHourNode.addClass("cal-first-hour");
|
||||||
|
timeSlotBlockNode.addClass("cal-first-hour");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue