You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
I want to create a trash can and be able to drag items off the tree
and drop them on the trash can and delete it from the tree in a
callback.
I set up a div to be droppable: $("#trashcan").droppable({drop:
function() { alert('dropped'); }}). But this does't work. I have set
the draggable: "all" and dragrules: "all" settings, too.
Is there a way to accomplish this?
vakata
unread,
Mar 4, 2009, 4:25:29 AM3/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
Currently there is no build in method to drag items off the tree.
You could create a node, that is named "Trash".
Or you could experiment further with jQuery UI. I will test too and
let you know.
Regards,
Ivan
boteeka
unread,
Mar 4, 2009, 5:20:35 AM3/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
Thanks for showing interest :)
I will look into the jQuery UI internals a little bit. Maybe I'll have
luck.
Anyways, please drop a comment here if you have any good ideas.