When an item is dragged from one folder to another, I need to see the move_node.jstree event to so I can update some internal data.
Doing a 'console.dir (data.old_instance)' and 'console.dir (data.new_instance)', in the move_node.jstree event listener, I see $.jstree.plugin.dnd for both, and life is good.
However, when the sort plugin is enabled, I get $.jstree.plugin.sort for both.
It's not surprising that sort generates the move_node.jstree events, but it creates a problem in that I no longer know what node was dragged from where to where before it sorts.
While it would be acceptable to manually trigger a sort in the move_node.jstree handler, this would (I imagine) trigger a second move_node.jstree event, leading to one level of recursion. Also, I'm honestly not sure I can manually trigger a sort, since I just started using jstree today.
Shouldn't there be an additional event for supported for sorting, like sort_node.jstree? Or perhaps telling sort to post the original mode_node.jstree events before sorting? I should be able to filter the $.jstree.plugin.sort types in the listener.
Thanks,
--jc