diff options
author | Michael <icarus@dabo.de> | 2012-05-19 16:55:33 +0200 |
---|---|---|
committer | Michael <icarus@dabo.de> | 2012-05-19 16:55:33 +0200 |
commit | 6342b3e0bdd5774857a8fca809994f05e0208d25 (patch) | |
tree | 54114a005e74c8a6d8bad8a490e1d1e41bc4178f /view/theme/quattro/events_reminder.tpl | |
parent | 2b8c4df544f59d611ad1e8fc0dbc5fcd38bee8f7 (diff) | |
parent | 9a940786c18c1c2bd772aec93f1828f67dc45667 (diff) | |
download | volse-hubzilla-6342b3e0bdd5774857a8fca809994f05e0208d25.tar.gz volse-hubzilla-6342b3e0bdd5774857a8fca809994f05e0208d25.tar.bz2 volse-hubzilla-6342b3e0bdd5774857a8fca809994f05e0208d25.zip |
Merge branch 'master' of github.com:annando/friendica
Diffstat (limited to 'view/theme/quattro/events_reminder.tpl')
-rw-r--r-- | view/theme/quattro/events_reminder.tpl | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/view/theme/quattro/events_reminder.tpl b/view/theme/quattro/events_reminder.tpl new file mode 100644 index 000000000..fc13fa68b --- /dev/null +++ b/view/theme/quattro/events_reminder.tpl @@ -0,0 +1,39 @@ +<link rel='stylesheet' type='text/css' href='$baseurl/library/fullcalendar/fullcalendar.css' /> +<script language="javascript" type="text/javascript" + src="$baseurl/library/fullcalendar/fullcalendar.min.js"></script> +<script> + // start calendar from yesterday + var yesterday= new Date() + yesterday.setDate(yesterday.getDate()-1) + + function showEvent(eventid) { + $.get( + '$baseurl/events/?id='+eventid, + function(data){ + $.fancybox(data); + } + ); + } + $(document).ready(function() { + $('#events-reminder').fullCalendar({ + firstDay: yesterday.getDay(), + year: yesterday.getFullYear(), + month: yesterday.getMonth(), + date: yesterday.getDate(), + events: '$baseurl/events/json/', + header: { + left: '', + center: '', + right: '' + }, + timeFormat: 'H(:mm)', + defaultView: 'basicWeek', + height: 50, + eventClick: function(calEvent, jsEvent, view) { + showEvent(calEvent.id); + } + }); + }); +</script> +<div id="events-reminder"></div> +<br> |