Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7914 closed bug (notabug)

refresh not work with connectWith

Reported by: djonline Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.sortable Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

$(".csortable").sortable({ connectWith: ".csortable" ...

$("#somediv").append("<div class=csortable></div>"); $(".csortable").sortable("refresh");

Bug: new div is not sortable.

Change History (5)

comment:1 Changed 8 years ago by Scott González

Resolution: invalid
Status: newclosed

That's not how plugins work; you need to initialize the new div. Please use the forums for help.

comment:2 Changed 8 years ago by djonline

May be you show this frequently asked question in official documentation with code example ?

comment:3 Changed 8 years ago by Scott González

This is frequently asked? If it were, I'm sure you would have found the answer before you posted this bug.

comment:4 Changed 8 years ago by djonline

Yes, found. Fully reinit. But this is not optimal i think.

comment:5 Changed 8 years ago by Scott González

No, you don't re-init the existing sortables. You need to initialize, for the first time, the new sortable.

Note: See TracTickets for help on using tickets.