#2729 closed enhancement (fixed)
Add a hook in sortables to generate the list of sortables
Reported by: | rfb | Owned by: | paul |
---|---|---|---|
Priority: | major | Milestone: | 1.5.2 |
Component: | ui.sortable | Version: | 1.5b4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hey,
I have created a nested sortable list which can only be 1 level deep. The cleanest way I've found to enforce this is to add hook into the refreshItems() which generates a different list of sortable items depending on what item I'm picking up.
Example, for my use:
if item contains a list
return list of sortables on root of list
else
return all sortables in list
Attached is a patch I've made from my changes on the most current svn trunk.
-Ryan
Attachments (1)
Change History (5)
Changed 15 years ago by
Attachment: | itemQuery.patch added |
---|
comment:2 Changed 15 years ago by
Component: | ui.core → ui.sortable |
---|---|
Version: | 1.2.3 → 1.5b4 |
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is implemented - the items option now accepts a function.
comment:4 Changed 15 years ago by
Milestone: | → 1.5.2 |
---|
Note: See
TracTickets for help on using
tickets.
patch to svn current