mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-10048 General calendar view enhancements as per spec with regard to event highlighting
This commit is contained in:
parent
edad8bec3c
commit
bf9ae76c36
2 changed files with 8 additions and 6 deletions
|
@ -265,7 +265,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
|
|||
|
||||
// Set event course class if a course event
|
||||
if($event->courseid != 0 && $event->courseid != SITEID && $event->groupid == 0) {
|
||||
$event->class = 'event_course'.array_search($event->courseid, $courses) % 3;
|
||||
$event->class = 'event_course'.array_search($event->courseid, $courses) % CALENDAR_MAXCOURSES;
|
||||
}
|
||||
|
||||
if ($event->timestart >= $starttime && $event->timestart <= $endtime) { // Print it now
|
||||
|
@ -538,7 +538,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
|
|||
|
||||
// Set event course class if a course event
|
||||
if($event->courseid != 0 && $event->courseid != SITEID && $event->groupid == 0) {
|
||||
$event->class = 'event_course'.array_search($event->courseid, $courses) % 3;
|
||||
$event->class = 'event_course'.array_search($event->courseid, $courses) % CALENDAR_MAXCOURSES;
|
||||
}
|
||||
|
||||
calendar_print_event($event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue