setTitle: function(title)
{
document.title = Kronolith.conf.name + ' :: ' + title;
+ return title;
},
showNotifications: function(msgs)
this.dayEvents = [];
this.dayGroups = [];
this.allDayEvents = [];
- $('kronolithViewDay').down('caption span').setText(date.toString('D'));
+ $('kronolithViewDay').down('caption span').setText(this.setTitle(date.toString('D')));
break;
case 'week':
dates = this.viewDates(date, view),
day = dates[0].clone();
- $('kronolithViewWeek').down('caption span').setText(Kronolith.text.week.interpolate({ week: date.getWeek() }));
+ $('kronolithViewWeek').down('caption span').setText(this.setTitle(Kronolith.text.week.interpolate({ week: date.getWeek() })));
for (var i = 0; i < 7; i++) {
div.writeAttribute('id', 'kronolithEventsWeek' + day.dateString());
dates = this.viewDates(date, view),
day = dates[0].clone(), row;
- $('kronolithViewMonth').down('caption span').setText(date.toString('MMMM'));
+ $('kronolithViewMonth').down('caption span').setText(this.setTitle(date.toString('MMMM yyyy')));
// Remove old rows. Maybe we should only rebuild the calendars if
// necessary.
break;
+ case 'year':
+ $('kronolithViewYear').down('caption span').setText(this.setTitle(date.toString('yyyy')));
+ break;
+
case 'agenda':
var tbody = $('kronolithViewAgendaBody');
// Build new calendar view.
tbody.insert(this.createAgendaDay(date, 0).show());
-
break;
}
},
<div id="kronolithViewYear" class="kronolithView kronolithViewYear" style="display:none">
<table class="kronolithView kronolithViewYear">
<caption>
- <div id="kronolithLoadingyear" class="kronolithLoading" style="display:none"></div>
- <span><?php echo $today->format("Y") ?></span>
+ <div id="kronolithLoadingyear" class="kronolithLoading"></div>
+ <span></span>
<span class="kronolithNavigation">
<a class="kronolithGotoToday"><?php echo _("Today") ?></a>
<a title="<?php echo _("Previous") ?>" class="kronolithPrev"><</a>