Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Add a hook before drag-drop


Project:Simple Tree +Drag'nDrop
Version:1-0.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Allow the user to add a function in the options which is called when a node
is dragged and dropped over an other one. The function would receive two
parameters and return true/false. The first parameter would be the destination node
and the second the dragged node.
An example:
tree = $('.simpleTree').simpleTree({
autoclose: false,
afterDnD: function(dest, droped) {
return conditionHolds;
},
..........
});
If afterDnD returns false, the dragged node should not change it's parent