jQuery 完整日历,所有事件显示为全天
完整日历的所有活动在议程视图中显示为“全天”。这是我用来初始化日历的代码:
$(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 日历的更多方面,但任何有关此问题的帮助将不胜感激。
谢谢,
艾米丽
All of the events for Full Calendar are showing as "all day" in the agenda views. This is the code that I am using to initialize the calendar :
$(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}]
});
});
I'm going to proceed with ajax-ifiying more aspects of the calendar but any help with this problem would be greatly appreciated.
Thanks,
Emily
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
allDay
应该有大写的D
。它无法识别
allday
,这意味着它会变为默认值true
。allDay
should have a capitalD
.It's not recognizing
allday
which mean it goes to the default value oftrue
.