From 93b1996514bea3631fd4e04e736dd3bc465c87b6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 6 Sep 2011 20:05:28 +0200 Subject: boot- and shutdownEvents defaultSize = 5min --- application/views/scripts/event/index.phtml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'application/views/scripts/event/index.phtml') diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml index fec85a4..ec180dd 100644 --- a/application/views/scripts/event/index.phtml +++ b/application/views/scripts/event/index.phtml @@ -60,7 +60,7 @@ var lastview; var calendar = $('#calendar').fullCalendar({ header: { - default: 'week', + default: 'week', left: 'title', center: 'prev,next today', right: 'agendaWeek,agendaDay' @@ -76,6 +76,7 @@ var lastview; allowCalEventOverlap: false, overlapEventsSeparate: false, slotMinutes: 30, + defaultEventMinutes: 5, events: "/event/eventlist", @@ -152,15 +153,26 @@ var lastview; eventRender: function(event, element, view) { if (view.name == 'agendaWeek') { element.qtip({ - content: 'Note: ' + event.note + '\n' + - 'Participants: ' + event.participants + content: + 'Title: ' + event.title + '
' + + 'Type: ' + event.category + '
' + + 'Note: ' + event.note + '
' + + 'Participants: ' + event.participants }); } if (view.name == 'agendaDay') { //alert(options.slotMinutes); //options['slotMinutes'] = 10; //opt.slotMinutes = 10; - element.find('.fc-event-title').append("
Note: " + event.note + "
Participants: " + event.participants); + //slotMinutes: 5, + element.qtip({ + content: + 'Title: ' + event.title + '
' + + 'Type: ' + event.category + '
' + + 'Note: ' + event.note + '
' + + 'Participants: ' + event.participants + }); + element.find('.fc-event-title').append("
Type: " + event.category + "
Note: " + event.note + "
Participants: " + event.participants); } }, -- cgit v1.2.3-55-g7522