#3009 closed bug (fixed)
sortable("refresh") doesn't refresh list of elements matching connectWith selector
Reported by: | 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)
Change History (5)
Changed 15 years ago by
Attachment: | sortables_refresh_bug.html.zip added |
---|
comment:1 Changed 15 years ago by
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 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 15 years ago by
thanks paul - can I get the updated code from somewhere, or do I have to wait for the next release?
simple HTML/JS to show this bug in action