Bug Tracker

Modify

Ticket #2729 (closed enhancement: invalid)

Opened 5 years ago

Last modified 3 years ago

Add a hook in sortables to generate the list of sortables

Reported by: rfb Owned by: paul
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

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

itemQuery.patch Download (1.9 KB) - added by rfb 5 years ago.
patch to svn current

Change History

Changed 5 years ago by rfb

patch to svn current

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This should be filed in the UI bug tracker if still relevant.

 http://dev.jqueryui.com

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.