Hello, i am using the jqueryPlugin fullcalendar. I add (see the example on http://arshaw.com/js/fullcalendar/examples/external-dragging.html) external events.
On the drop event i have difficults to add or manipulate the attributes of the added event.
drop: function(date, allDay) { // this function is called when something is dropped
// retrieve the dropped element's stored Event Object
var originalEventObject = $(this).data('eventObject');
var eventtype = originalEventObject.eventtype;
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = $.extend({}, originalEventObject);
// assign it the date that was reported
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
//******* !!!!!! PROBLEM HERE !!!!!!!!!!! **/ // here for example i want to set the id and the // classname of the event, but nothing happens here // the id is not "TEST_ID" and the CSS-Class takes no effect copiedEventObject.id = 'TEST_ID'; copiedEventObject.className = 'eventColorSLOT'; $('#calendar').fullCalendar('renderEvent', copiedEventObject, true);