date = this.date;
}
- if (this.view == loc && date.getYear() == this.date.getYear() &&
+ if (this.view != 'agenda' &&
+ this.view == loc && date.getYear() == this.date.getYear() &&
((loc == 'year') ||
(loc == 'month' && date.getMonth() == this.date.getMonth()) ||
(loc == 'week' && date.getRealWeek() == this.date.getRealWeek()) ||
case 'search':
var cals = [], term = locParts[0],
query = Object.toJSON({ title: term });
- this.closeView();
+ this.closeView('agenda');
this.updateView(null, 'search', term);
$H(Kronolith.conf.calendars).each(function(type) {
$H(type.value).each(function(calendar) {
$('kronolithAgendaDate')
.update(this.setTitle(Kronolith.text.agenda + ' ' + dates[0].toString('d') + ' - ' + dates[1].toString('d')));
} else {
- $('kronolithViewAgenda')
- .down('caption span')
+ $('kronolithAgendaDate')
.update(this.setTitle(Kronolith.text.searching.interpolate({ term: data })));
}
case 'kronolithSearchButton':
this.go('search:' + $F('kronolithSearchTerm'))
+ e.stop();
break;
case 'kronolithNotifications':