jQuery完整日历,所有事件全天显示

时间:2011-07-04 21:37:45

标签: jquery fullcalendar iso8601

完整日历的所有活动在议程视图中显示为“全天”。这是我用来初始化日历的代码:

$(document).ready(function() {
        $('#calendar').fullCalendar({
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
        },
            editable: false,
        events: 

                            [{start : $.fullCalendar.parseISO8601('2011-07-01T12:15:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-01T13:15:00-04:00', true) , title : 'Lunch Bunch!- Brookstreet BBQ' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-05T17:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-05T17:15:00-04:00', true) , title : 'Callback - Gene Cashman' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-06T17:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-06T17:15:00-04:00', true) , title : 'Callback - Jeff Turner' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-20T17:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-20T17:15:00-04:00', true) , title : 'Callback - Valley Kidney Center Default Contact' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-05T17:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-05T17:15:00-04:00', true) , title : 'Callback - Gene Cashman' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-01T09:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-01T09:15:00-04:00', true) , title : 'Callback - Sandra Wright' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-01T09:30:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-01T09:45:00-04:00', true) , title : 'c' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-01T15:30:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-01T15:45:00-04:00', true) , title : 'c' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-01T16:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-01T16:15:00-04:00', true) , title : 'Callback - Linda Cao' , allday : false} , {start : $.fullCalendar.parseISO8601('2011-07-05T09:00:00-04:00', true) , end : $.fullCalendar.parseISO8601('2011-07-05T09:15:00-04:00', true) , title : 'j' , allday : false}]              
        });
    });

我将继续ajax-ifiying日历的更多方面,但对此问题的任何帮助将不胜感激。

谢谢,

艾米丽

1 个答案:

答案 0 :(得分:11)

allDay应该有一个大写D

它无法识别allday,这意味着它会转到默认值true