[mochikit] MochiKit.DragAndDrop - revert

0 views
Skip to first unread message

Helmut

unread,
May 7, 2009, 4:11:03 AM5/7/09
to moch...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages