Skip to main content

Search and Top Navigation

#2729 closed enhancement (fixed)

Opened April 21, 2008 09:03PM UTC

Closed July 03, 2008 10:53PM UTC

Last modified July 03, 2008 11:01PM UTC

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 (0)
Change History (4)

Changed May 24, 2008 03:39AM UTC by comment:1

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed May 24, 2008 04:26PM UTC by paul comment:2

component: ui.coreui.sortable
version: 1.2.31.5b4

Changed July 03, 2008 10:53PM UTC by paul comment:3

resolution: → fixed
status: newclosed

This is implemented - the items option now accepts a function.

Changed July 03, 2008 11:01PM UTC by paul comment:4

milestone: → 1.5.2