Issue 1913: Trying to add CRTL+Drag to Copy
Status:  Invalid
Owner: ----
Closed:  Aug 2013
Reported by tobi.kre...@gmail.com, Jul 10, 2013
Hey Adam,

awesome work with your calendar. I Love it!
The last 6 hours I was trying to add a functionality to copy an Event by holding the CTRL-Key pressed and Drap the Event. Like the Copy Action you know from the Windows-Explorer.

So I descided to do that in the EventDrop() function.
But I just cant get it working:
function eventDrop(e, event, dayDelta, minuteDelta, allDay, ev, ui) {
		
		if (ev.ctrlKey == true) {

			var eventCopy = event;
			minuteDelta = minuteDelta || 0;
			eventCopy._id = "fc_" + eventGUID++;

			eventCopy.title ="kopiertes Event";
			eventCopy.start = event.start;
			eventCopy.end = event.end;

		        var oldAllDay = event.allDay;
			moveEvents(eventsByID[eventCopy._id], dayDelta, minuteDelta, allDay);
			trigger(
				'eventDrop',
				e,
				eventCopy,
				dayDelta,
				minuteDelta,
				allDay,
				function() {
				     moveEvents(eventsByID[eventCopy._id], -dayDelta, -minuteDelta, oldAllDay);
				     reportEventChange(eventCopy._id);
			},
			ev,
			ui
			);
			reportEventChange(eventCopy._id);

		}else{
/* 
your default action
*/
}

Maybe you see why or can give me a hint how to create a new Event with the data of the selected one to the new Position.

It would be awesome if you could take a look at this!
Best wishes
Tobi
Aug 24, 2013
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Invalid