Visual improvements: show icons for recurring events and alarms
This commit is contained in:
parent
ee2ae29feb
commit
fc13d4cf63
3 changed files with 23 additions and 10 deletions
|
@ -610,18 +610,13 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
||||||
// event rendering
|
// event rendering
|
||||||
eventRender: function(event, element, view) {
|
eventRender: function(event, element, view) {
|
||||||
if(view.name != "month") {
|
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) {
|
if (event.location) {
|
||||||
element.find('span.fc-event-title').after('<span class="fc-event-location">@' + event.location + '</span>');
|
element.find('div.fc-event-title').after('<div class="fc-event-location">@ ' + Q(event.location) + '</div>');
|
||||||
}
|
|
||||||
if (event.description) {
|
|
||||||
if (!event.allDay){
|
|
||||||
element.find('span.fc-event-title').after('<span class="fc-event-description">' + event.description + '</span>');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
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
|
// callback for date range selection
|
||||||
|
|
|
@ -410,6 +410,10 @@ a.alarm-action-snooze:after {
|
||||||
font-style:italic;
|
font-style:italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fc-event-location {
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
.fc-agenda-slots td div {
|
.fc-agenda-slots td div {
|
||||||
height: 22px;
|
height: 22px;
|
||||||
}
|
}
|
||||||
|
@ -422,6 +426,20 @@ a.alarm-action-snooze:after {
|
||||||
background-color: #fff;
|
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 */
|
/* Settings section */
|
||||||
|
|
||||||
fieldset #calendarcategories div {
|
fieldset #calendarcategories div {
|
||||||
|
|
BIN
plugins/calendar/skins/default/images/eventicons.gif
Normal file
BIN
plugins/calendar/skins/default/images/eventicons.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 93 B |
Loading…
Add table
Reference in a new issue