Small bugfix and rubustness improvement
This commit is contained in:
parent
1236a91bb5
commit
70c42619cd
1 changed files with 5 additions and 4 deletions
|
@ -363,9 +363,10 @@ function rcube_calendar_ui(settings)
|
|||
if (event.free_busy)
|
||||
$('#event-free-busy').show().children('.event-text').html(Q(rcmail.gettext(event.free_busy, 'calendar')));
|
||||
if (event.priority > 0) {
|
||||
var priolabels = [ '', rcmail.gettext('high'), rcmail.gettext('highest'), '', '', rcmail.gettext('normal'), '', '', rcmail.gettext('low'), rcmail.gettext('lowest') ];
|
||||
var priolabels = [ '', rcmail.gettext('highest'), rcmail.gettext('high'), '', '', rcmail.gettext('normal'), '', '', rcmail.gettext('low'), rcmail.gettext('lowest') ];
|
||||
$('#event-priority').show().children('.event-text').html(Q(event.priority+' '+priolabels[event.priority]));
|
||||
}
|
||||
|
||||
if (event.sensitivity != 0) {
|
||||
var sensitivityclasses = { 0:'public', 1:'private', 2:'confidential' };
|
||||
$('#event-sensitivity').show().children('.event-text').html(Q(sensitivitylabels[event.sensitivity]));
|
||||
|
@ -2407,7 +2408,7 @@ function rcube_calendar_ui(settings)
|
|||
}
|
||||
},
|
||||
viewRender: function(view) {
|
||||
if (view.name == 'month')
|
||||
if (fc && view.name == 'month')
|
||||
fc.fullCalendar('option', 'maxHeight', Math.floor((view.element.parent().height()-18) / 6) - 35);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue