From ae98954439320e4e72cbfad9ad3974c661fadd04 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 26 May 2009 15:10:19 +0200 Subject: [PATCH] Don't show start time of all-day events in agenda. --- kronolith/js/src/kronolith.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 5328167ae..0fe921f1a 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -979,11 +979,13 @@ KronolithCore = { case 'agenda': var div = _createElement(event) .setStyle({ 'backgroundColor': event.value.bg, - 'color': event.value.fg }) - .update(new Element('SPAN', { 'class': 'kronolithDate' }).update(event.value.start.toString('t'))) - .insert(' ') - .insert(new Element('SPAN', { 'class': 'kronolithSep' }).update('·')) - .insert(' ') + 'color': event.value.fg }); + if (!event.value.al) { + div.update(new Element('SPAN', { 'class': 'kronolithDate' }).update(event.value.start.toString('t'))) + .insert(' ') + .insert(new Element('SPAN', { 'class': 'kronolithSep' }).update('·')) + .insert(' '); + } $('kronolithAgendaDay' + date).insert(div); break; } -- 2.11.0