Visual improvements: show icons for recurring events and alarms

This commit is contained in:
Thomas Bruederli 2011-05-31 13:07:51 +02:00
parent ee2ae29feb
commit fc13d4cf63
3 changed files with 23 additions and 10 deletions

View file

@ -610,18 +610,13 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
// event rendering
eventRender: function(event, element, view) {
if(view.name != "month") {
if (event.categories) {
if(!event.allDay)
element.find('span.fc-event-title').after('<span class="fc-event-categories">' + event.categories + '</span>');
}
if (event.location) {
element.find('span.fc-event-title').after('<span class="fc-event-location">@' + event.location + '</span>');
}
if (event.description) {
if (!event.allDay){
element.find('span.fc-event-title').after('<span class="fc-event-description">' + event.description + '</span>');
}
element.find('div.fc-event-title').after('<div class="fc-event-location">@&nbsp;' + Q(event.location) + '</div>');
}
if (event.recurrence_id)
element.find('div.fc-event-time').append('<i class="fc-icon-recurring"></i>');
if (event.alarms)
element.find('div.fc-event-time').append('<i class="fc-icon-alarms"></i>');
}
},
// callback for date range selection

View file

@ -410,6 +410,10 @@ a.alarm-action-snooze:after {
font-style:italic;
}
.fc-event-location {
font-size: 90%;
}
.fc-agenda-slots td div {
height: 22px;
}
@ -422,6 +426,20 @@ a.alarm-action-snooze:after {
background-color: #fff;
}
.fc-icon-alarms,
.fc-icon-recurring {
display: inline-block;
width: 11px;
height: 11px;
background: url('images/eventicons.gif') 0 0 no-repeat;
margin-left: 3px;
line-height: 10px;
}
.fc-icon-alarms {
background-position: 0 -13px;
}
/* Settings section */
fieldset #calendarcategories div {

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B