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

Prevent dragStart from removing list item

Asked by Joey
8 years ago.

I would like to be able to drag events from a list and place them on a Calendar and not have those items get deleted from the list. I've tried the instructions at the following URL, but it doesn't work. The items are still removed from the list. I'm using version 8.2.5834.

https://forums.daypilot.org/Topic.aspx/550/i_dont_want_to_delete_the_node_after_dragstart_event

Answer posted by Joey
8 years ago.

Oh, found another answer that seems to have answered this. The first parameter needs to be null, not that last parameter as indicated in the above link.

onmousedown='return DayPilotCalendar.dragStart(this, 60*30, "125", this.innerHTML);'

should be...

onmousedown='return DayPilotCalendar.dragStart(null, 60*30, "125", this.innerHTML);'

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