Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3009 closed bug (fixed)

sortable("refresh") doesn't refresh list of elements matching connectWith selector

Reported by: earthns@… Owned by: paul
Priority: major Milestone: 1.5.1
Component: ui.core Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

Description

I'm building a widget that has 2 levels of sortables that lets a user build a form. There are fieldsets and fields, and I'm trying to make it so that you can sort the fieldsets and also sort the fields both within the fieldset, and also moving between fieldsets (they're linked using the connectWith option).

That's all built and working now, my issue is that I want to be able to dynamically add new fieldsets (which is easy), but when I add a new fieldset and do a .sortable('refresh'); on both sortables, it won't allow me to move fields into the new fieldset. It seems to me that the refresh command doesn't refresh the array of elements matching the connectWith selector, and thus I can't move fields into the new fieldset because jQuery doesn't realize it should be connected to the sortable.

Attachments (1)

sortables_refresh_bug.html.zip (1.2 KB) - added by spwarner 12 years ago.
simple HTML/JS to show this bug in action

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by spwarner

simple HTML/JS to show this bug in action

comment:1 in reply to:  description Changed 12 years ago by spwarner

Hope this is what you're looking for in terms of info - my original account on this Trac is kinda messed, so I'm not entirely sure this is done right

comment:2 Changed 12 years ago by paul

Resolution: fixed
Status: newclosed

comment:3 Changed 12 years ago by spwarner

thanks paul - can I get the updated code from somewhere, or do I have to wait for the next release?

comment:4 Changed 12 years ago by paul

Milestone: 1.51.5.1

best wait for the release today (1.5.1) :)

Note: See TracTickets for help on using tickets.