| Issue 2533: | Background events - Scheduler Plugin | |
| 3 people starred this issue and may be notified of changes. | Back to list |
Hi Adam,
I'm trying to add a background event in the scheduler and I get this error: 'Uncaught TypeError: Cannot read property 'clone' of undefined'.
I tried in many ways and still not working. Maybe it's not a supported functionality?
Thanks
PD: I'm just doing this when I render my events:
var eventObj =
{
resourceId: 1,
id: 'availableForMeeting',
start: '2015-06-25T01:00:00',
end: '2015-06-25T08:00:00',
rendering: 'background',
color: 'orange'
};
calendar.fullCalendar('renderEvent', eventObj, true);
Aug 13, 2015
Another report from Hans:
Download version:
v1.0.0-beta
Downloaded at 2015-08-03
JS Error:
TypeError: this.slotDates[n] is undefined
scheduler.min.js
Line 5
fullcalendar config:
defaultTimedEventDuration: "00:30:00"
defaultView: "timelineDay"
editable: true
eventDurationEditable: false
events: "url_to_json_server"
resourceLabelText: "Resource"
resources: "url_to_resources_json"
slotMinutes: 30
timeFormat: "HH:mm"
titleFormat: "D MMMM YYYY”
the json
[{
"resourceId":1,
"start":"2015-08-03 09:00:00",
"end":"2015-08-03 18:00:00",
"rendering":"background",
"className":"available"
},{
"resourceId":1,
"start":"2015-08-03 09:00:00",
"end":"2015-08-03 18:00:00",
"rendering":"inverse-background",
"className":"unavailable",
"color":"red"
},{
"resourceId":1,
"className":"task",
"start":"2015-08-03 11:37:07",
"end":"2015-08-03 12:07:07",
"type":"task",
"title":"task 1",
"id":"t_1"
},{
"resourceId":1,
"className":"task",
"start":"2015-08-03 11:07:07",
"end":"2015-08-03 11:37:07",
"type":"task",
"title":"task 2",
"id":"t_2"
},{
"resourceId":1,
"className":"task",
"start":"2015-08-03 14:37:07",
"end":"2015-08-03 15:07:07",
"type":"task",
"title":"task 3",
"id":"t_3"
},{
"resourceId":1,
"className":"task",
"start":"2015-08-03 13:07:07",
"end":"2015-08-03 13:37:07",
"type":"task",
"title":"task 4",
"id":"t_4"
},{
"resourceId":1,
"title":"Prospect 1",
"className":"prospect",
"start":"2015-08-03 10:00:00",
"end":"2015-08-03 12:00:00",
"type":"prospect",
"id":"p_1"
},{
"resourceId":2,
"start":"2015-08-03 09:00:00",
"end":"2015-08-03 17:30:00",
"rendering":"background",
"className":"available"
},{
"resourceId":2,
"start":"2015-08-03 09:00:00",
"end":"2015-08-03 17:30:00",
"rendering":"inverse-background",
"className":"unavailable",
"color":"red"
},{
"resourceId":2,
"title":"Prospect 2",
"className":"prospect",
"start":"2015-08-03 11:30:00",
"end":"2015-08-03 12:00:00",
"type":"prospect",
"id":"p_2"
}]
and the resources:
[{
"title":"resource 1",
"id":1
},{
"title":"resource 2",
"id":2
}]
Aug 22, 2015
background events have been fixed in v1 of scheduler http://fullcalendar.io/scheduler/ thanks!
Status:
Released
|
|
| ► Sign in to add a comment |
Labels: Type-Bug Milestone-Scheduler