search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Swap events but keep duration

Related article: JavaScript Scheduler: Swapping Events (Drag and Drop)
Asked by Anonymous
2 years ago.

I was following this tutorial for swaping events

Problem for me is that line of code = because event does not keep origin duration but will get one based on event which was swapped on his location.

Answer posted by Dan Letecky [DayPilot]
2 years ago.

The tutorial is now updated and it will keep the duration of both events after they are swapped:

  var targetDuration = targetEvent.duration(); =; = targetEvent.start().addTime(targetDuration); =;

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.