I have 2 jstrees. TreeSource and TreeDestination. I want only the copy operation to be enabled while moving the nodes between trees. In my TreeDestination I have the below line inside check_callback.
if (more) {
more.origin.settings.dnd.always_copy = true;
}
Now, many of the cases work fine with this. That is, the copy operation takes place between the nodes when dragging them from one tree to another and vice versa. However, now when I move the nodes of tree TreeSource inside the tree itself, they are not moved, but getting copied. Looks like more.origin.settings.dnd.always_copy = true; is affecting both the trees, despite declaring only in the TreeDestination.
How can I resolve this?