diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-01 22:24:03 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-01 22:24:03 +0100 |
commit | 86e9e03925dcdc62024563c1906bb4700933b827 (patch) | |
tree | 1e6539993a4da73e19760625147f6c984e904e90 /frontend.js | |
parent | 9f699b4ed028796f37f2dc55218d432612354414 (diff) |
Add complete ical support
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend.js b/frontend.js index a069966..ed093f4 100644 --- a/frontend.js +++ b/frontend.js @@ -28,10 +28,11 @@ exports.start = function(config) { } var eventStr = ''; for(var date in slides['events']) { + if(!slides['events'].hasOwnProperty(date)) { continue; } eventStr = eventStr + '<h4>'+date+'</h4><hr><ul>'; for(var ev in slides['events'][date]) { if(!slides['events'][date].hasOwnProperty(ev)) { continue; } - eventStr = eventStr + '<li>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['text']+'</li>'; + eventStr = eventStr + '<li>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['summary']+'</li>'; } eventStr = eventStr + '</ul>'; } |