Sortable chomps events of contained items
Reported by Juho Vepsäläinen | October 16th, 2010 @ 05:57 PM
I'm currently building a little layer system (a stack basically). The idea is that the user should be able to modify the ordering of the layers using drag and drop. I thought Sortable plugin might just be the thing for this. I came upon a problem, though.
The thing is that each of those layers contains some functionality (ie. hide/show, select). Using sortable on the stack makes it possible to reorder it. After enabling Sortable I cannot access the functionality of the layers anymore, however. It seems Sortable overrides the events defined for each layer.
I guess like in the case of Draggable providing a handle element for sorting just might do the trick. Or if it's possible to do without, that would be even better. :)
Comments and changes to this ticket
-
Juho Vepsäläinen October 17th, 2010 @ 12:19 PM
Sure. Here's a minimal example to see what I'm after, http://gist.github.com/630656 .
-
MadRabbit October 17th, 2010 @ 05:04 PM
- State changed from new to resolved
Here you go!
http://rightjs.org/ui/sortable/demo#custom
there are couple of new options for that
http://rightjs.org/ui/sortable#optionsand couple of new events to handle as well
http://rightjs.org/ui/sortable#options
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
RightJS Core Tickets