* Calendar - Highlight current user in planner by user

This commit is contained in:
nathangray 2017-04-06 08:46:05 -06:00
parent fcf50f1bc0
commit 94132c68be
3 changed files with 11 additions and 0 deletions

View File

@ -518,6 +518,11 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
{ {
row.set_disabled(true); row.set_disabled(true);
} }
// Highlight current user, sort_key is account_id
if(sort_key === egw.user('account_id'))
{
row.set_class('current_user')
}
// Since the daywise cache is by user, we can tap in here // Since the daywise cache is by user, we can tap in here
var t = new Date(this.options.start_date); var t = new Date(this.options.start_date);
var end = new Date(this.options.end_date); var end = new Date(this.options.end_date);

View File

@ -1113,6 +1113,9 @@ Hide subsequent headers in week view with non-consolidated owners
top: 2px; top: 2px;
} }
.calendar_plannerRowWidget.current_user {
background-color: rgba(0,0,0,0.05);
}
.calendar_plannerRowWidget:hover { .calendar_plannerRowWidget:hover {
background-color: rgba(103, 159, 210, 0.2); background-color: rgba(103, 159, 210, 0.2);
} }

View File

@ -1079,6 +1079,9 @@ Hide subsequent headers in week view with non-consolidated owners
left: 10px; left: 10px;
top: 2px; top: 2px;
} }
.calendar_plannerRowWidget.current_user {
background-color: rgba(0, 0, 0, 0.05);
}
.calendar_plannerRowWidget:hover { .calendar_plannerRowWidget:hover {
background-color: rgba(103, 159, 210, 0.2); background-color: rgba(103, 159, 210, 0.2);
} }