Hello,
I started using jstree version 0.9.9a. a little time ago. I use the async json funcionality of it.
I will take the create node scenario to describe how i am using it.
I use the beforecreate callback and i use ajax to post data to a php script, the php side handles the request and creates a node in the database and returns true or false if the node was created and with what name.
After implementing ( create,delete, move ) it was time to work with copy. What i have understand that is happening is this that copy uses move callback. No problem with that.
The problem is that there is no beforecopy either beforepaste callback but only oncopy, that way i can not understand how to determine if the call to move was because a copy action was called.
From tha database view the result is that node will be cut/pasted instead of copy/pasted, even though the jstree will show that the node is copied.
The only thing i can get, which is uselless, is oncopy the id_copy of the node after the move so i can no longer know which where the previous position of it.
What can i do for this?
Hope there is a solution out there because i really need it.
Friendly,
D.M.