onDrop in Sortable

19 views
Skip to first unread message

Luke

unread,
Sep 23, 2011, 11:47:56 AM9/23/11
to prototype-s...@googlegroups.com
Hi,

it seems there's no callback for 'onDrop' (like in Droppable) in Scriptaculous' Sortable. Is there any way to call a function whenever an element's dropped in Sortable?

Thanks
Lukas

Walter Lee Davis

unread,
Sep 23, 2011, 11:49:43 AM9/23/11
to prototype-s...@googlegroups.com

On Sep 23, 2011, at 11:47 AM, Luke wrote:

> Hi,
>
> it seems there's no callback for 'onDrop' (like in Droppable) in Scriptaculous' Sortable. Is there any way to call a function whenever an element's dropped in Sortable?

Implicitly, dropping calls the onChange callback, and you could use that.

Walter

Reply all
Reply to author
Forward
0 new messages