Discussion:
MochiKit.DragAndDrop - revert
Helmut
2009-05-07 08:11:03 UTC
Permalink
Hi all,

i have problems using the MochiKit.DragAndDrop interface.

I would like to drag and drop an element on a certain area.
When the element is droped outside this area it should revert
to the origin, inside it should stay there.

When i set

'revert' : true

as on option to the draggable, jumping back to the origin works.
But how do i avoid reverting, when the element is dropped on the
target area?

I tried something like setting

'revert': false

in the "ondrop" handler, but this did not work.

Thank You for any help!

Helmut




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...