From: Jan Schneider Date: Fri, 5 Jun 2009 14:25:19 +0000 (+0200) Subject: Navigate to month/week/day from year view. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=afa03774aa3b25740705da79187dff9ef209491e;p=horde.git Navigate to month/week/day from year view. --- diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index ac43b740a..c4625f72f 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -526,7 +526,8 @@ KronolithCore = { // 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)); @@ -1584,6 +1585,25 @@ KronolithCore = { 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; diff --git a/kronolith/templates/index/year.inc b/kronolith/templates/index/year.inc index 42383c15c..e70b85bca 100644 --- a/kronolith/templates/index/year.inc +++ b/kronolith/templates/index/year.inc @@ -26,7 +26,7 @@ diff --git a/kronolith/themes/screen.css b/kronolith/themes/screen.css index 46b0cdd80..cf6d10ccb 100644 --- a/kronolith/themes/screen.css +++ b/kronolith/themes/screen.css @@ -827,7 +827,9 @@ div#kronolithEventTopTags span:hover { border-bottom: 1px #000 dotted; text-align: left; } -#kronolithMinicalDate { +.kronolithMinical caption span { + overflow: hidden; + white-space: nowrap; cursor: pointer; } #kronolithMinicalPrev, #kronolithMinicalNext {