Why does the "move_node.jstree" binding only work once, for the first node, when moving a group of nodes?

Can someone tell me why the binding "move_node.jstree" only works once, for the first node when moving a group of nodes? and how can I detect all moved nodes?

I need to detect all the moved nodes so that I can report through the ajax custom function. This is what I use per minute, but it only runs for the first node from my selection of nodes that move at the same time.

.bind("move_node.jstree", function (e, data) {
            /*
            data.rslt contains: 
            .o - the node being moved 
            .r - the reference node in the move 
            .ot - the origin tree instance 
            .rt - the reference tree instance 
            .p - the position to move to (may be a string - "last", "first", etc) 
            .cp - the calculated position to move to (always a number) 
            .np - the new parent 
            .oc - the original node (if there was a copy) 
            .cy - boolen indicating if the move was a copy 
            .cr - same as np, but if a root node is created this is -1 
            .op - the former parent 
            .or - the node that was previously in the position of the moved node 
            */
            var eventID = data.rslt.o.attr("id").substring(11);
            var groupID = data.rslt.np.attr("id").substring(11);
            commitEventMove(eventID,groupID);
            //alert("bind-move_node fired");
           })
+3
source share
1 answer

Finally, after a day and a half, I found the correct problem number !: -D, if you have the same problem, check this solution:

http://code.google.com/p/jstree/issues/detail?id=805

, cus the current one sucks ass.

+4

All Articles