0
我有一個使用FullCalendar v.2.6.0的事件日曆。它從具有3周每日事件的JSON文件中提取數據。包括週六活動在內的所有活動都會在週日活動中展示週日活動。這裏是我的設置FullCalendar議程查看不顯示星期日事件
$(document).ready(function() {
$('#calendar').fullCalendar({
customButtons: {
livePrograms: {
text: 'All Live Programs',
click: function() {
window.location.href='https://mysite/live';
}
}
},
header: {
left: 'title',
right: 'livePrograms'
},
defaultView: 'agendaWeek',
height: 'auto',
allDaySlot: false,
nowIndicator: true,
events: {
url: 'php/events.php',
error: function() {
$('#script-warning').show();
}
},
loading: function(bool) {
$('#loading').toggle(bool);
}
});
});
下面是我的JSON數據片段
[
{
"id":"51010",
"title":"The Big Easy",
"start":"Fri, 2016-01-01 00:00",
"end":"Fri, 2016-01-01 02:00",
"className":"hop",
"url":"\/event\/41010"
},
{
"id":"91000",
"title":"Creole",
"start":"Fri, 2016-01-01 02:00",
"end":"Fri, 2016-01-01 06:00",
"className":"karma",
"url":"\/event\/91000"
},
{
"id":"13240",
"title":"People Presente",
"start":"Fri, 2016-01-01 06:00",
"end":"Fri, 2016-01-01 07:00",
"className":"word",
"url":"\/event\/13240"
},
{
"id":"47124",
"title":"For Better or Worse",
"start":"Sun, 2016-01-03 13:30",
"end":"Sun, 2016-01-03 14:00",
"className":"word",
"url":"\/event\/47124"
}
]
我試圖改變一些包括增加週末的設置:真正在配置以及創建自定義日程視圖與指定的「持續時間:{天數:7}」......沒有任何東西似乎有所作爲。
我錯過了什麼?
只是爲了補充一點,當我添加一個月視圖作爲默認值,然後進入agendaweek視圖時,所有事件(包括星期天)都會出現。 – Runya