// Set month name.
table.down('SPAN')
- .setText(Date.CultureInfo.monthNames[month]);
+ .setText(Date.CultureInfo.monthNames[month])
+ .writeAttribute('date', year.toPaddedString(4) + (month + 1).toPaddedString(2) + '01');
// Build month table.
this.buildMinical(tbody, new Date(year, month, 1));
e.stop();
return;
+ case 'kronolithViewYear':
+ var tmp = orig;
+ if (tmp.tagName != 'td') {
+ tmp.up('td');
+ }
+ if (tmp) {
+ if (tmp.readAttribute('weekdate') &&
+ tmp.hasClassName('kronolithMinicalWeek')) {
+ this.go('week:' + tmp.readAttribute('weekdate'));
+ } else if (tmp.hasClassName('kronolithMinicalDate')) {
+ this.go('month:' + tmp.readAttribute('date'));
+ } else if (tmp.readAttribute('date') &&
+ !tmp.hasClassName('empty')) {
+ this.go('day:' + tmp.readAttribute('date'));
+ }
+ }
+ e.stop();
+ return;
+
case 'kronolithSearchButton':
this.go('search:' + $F('kronolithSearchContext') + ':' + $F('kronolithSearchTerm'))
break;
<table id="kronolithYearTemplate" style="display:none" cellspacing="1" cellpadding="0" border="0">
<caption>
- <span></span>
+ <span class="kronolithMinicalDate"></span>
</caption>
<thead><tr>
<th class="kronolithMinicalEmpty"> </th>
border-bottom: 1px #000 dotted;
text-align: left;
}
-#kronolithMinicalDate {
+.kronolithMinical caption span {
+ overflow: hidden;
+ white-space: nowrap;
cursor: pointer;
}
#kronolithMinicalPrev, #kronolithMinicalNext {