OdinaSpb / jstree

Automatically exported from code.google.com/p/jstree
0 stars 0 forks source link

drag_finish not working #905

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to use drag_finish event but it seems not working. I check the
dnd demo page ( http://www.jstree.com/documentation/dnd ) and not
works too, no alerts appeared.

Original issue reported on code.google.com by lays...@gmail.com on 24 Feb 2011 at 9:02

GoogleCodeExporter commented 9 years ago
Not a bug, the DnD plugin is for foreign nodes only and not nodes within the 
tree. Use the crrm plugin for that.

Original comment by cwolgast on 24 Feb 2011 at 3:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you the answer, but i need an event to use record my tree structure, when 
the user modified the tree. The check_move event in crrm plugin fired many 
times when user moving a node, i search an event which only fired once when the 
user finished the move.

Original comment by lays...@gmail.com on 24 Feb 2011 at 3:54

GoogleCodeExporter commented 9 years ago
Use the move_node event.

Original comment by cwolgast on 25 Feb 2011 at 7:23

GoogleCodeExporter commented 9 years ago
Thank you, it's works!

Original comment by lays...@gmail.com on 25 Feb 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Hi,
I have following code, and the alert is not showing up. Any help?

"crrm" : {
          "move" : {
           "default_position" : "first",
           "move_node" : function (k) { alert(k);  }
      }
}

Original comment by bakpa...@gmail.com on 17 Mar 2011 at 10:06

GoogleCodeExporter commented 9 years ago
I could get the notification on move_node by doing:

.bind("open_node.jstree close_node.jstree select_node.jstree move_node.jstree", 
function (e) {

})

Original comment by bakpa...@gmail.com on 17 Mar 2011 at 10:30