sortable to droppable

268 views
Skip to first unread message

spiderling

unread,
Feb 6, 2009, 10:19:11 PM2/6/09
to jQuery UI Development
A week ago I posted the following problem I was having with a sortable
list item being moved to a droppable trash bin.
http://groups.google.com/group/jquery-ui/browse_thread/thread/778088fbbda7ff25/f9e920a91c1eccdb?lnk=gst&q=spiderling#f9e920a91c1eccdb

After many hours of searching and testing, I thankfully came across a
site with the same set up and began comparing and testing. It turns
out that mine wasn't working because I was using jQuery 1.3.x and UI
1.6rc6. When I used the same versions as the sample I came across it
worked. The working combination is jQuery 1.2.6 and UI 1.5.3.

Shall I report this as a bug?

Scott González

unread,
Feb 7, 2009, 9:34:33 AM2/7/09
to jquery...@googlegroups.com
Yeah, this sounds like a regression.  You can create a ticket at http://dev.jqueryui.com/newticket (requires registration).  Thanks.

Bohdan Ganicky

unread,
Feb 7, 2009, 9:36:41 AM2/7/09
to jQuery UI Development
Seems as a bug to me. You can try to do this inside the drop callback:

setTimeout(function() { $(ui.draggable).remove(); }, 1000);

...and it works! Or you can do this:

$(ui.draggable).hide('slow', function() {
$(this).remove();
});

...and it works as well as you can see in this demo:
http://jquery-ui.googlecode.com/svn/trunk/demos/sortable/connect-lists-through-tabs.html

So it seems that the ui.draggable can't be removed immediately after
the drop callback is triggered and I think it's a bug.

I will create a ticket for it. Thanks for reporting it!

--
Bohdan

On Feb 7, 4:19 am, spiderling <webmas...@spiderling.ca> wrote:
> A week ago I posted the following problem I was having with a sortable
> list item being moved to a droppable trash bin.http://groups.google.com/group/jquery-ui/browse_thread/thread/778088f...

Bohdan Ganicky

unread,
Feb 7, 2009, 11:04:51 AM2/7/09
to jQuery UI Development
I've made 2 new tickets which I think may be related:

http://dev.jqueryui.com/ticket/4087
http://dev.jqueryui.com/ticket/4088

--
Bohdan

On Feb 7, 3:36 pm, Bohdan Ganicky <bohdan.gani...@gmail.com> wrote:
> Seems as a bug to me. You can try to do this inside the drop callback:
>
> setTimeout(function() { $(ui.draggable).remove(); }, 1000);
>
> ...and it works! Or you can do this:
>
> $(ui.draggable).hide('slow', function() {
>   $(this).remove();
>
> });
>
> ...and it works as well as you can see in this demo:http://jquery-ui.googlecode.com/svn/trunk/demos/sortable/connect-list...

spiderling

unread,
Feb 10, 2009, 12:06:56 AM2/10/09
to jQuery UI Development
Thanks Bohdan for the snippet. Much appreciated. It works nicely.

Your tickets pretty much cover. No point in opening another.

Pasquale


On Feb 7, 7:36 am, Bohdan Ganicky <bohdan.gani...@gmail.com> wrote:
> Seems as a bug to me. You can try to do this inside the drop callback:
>
> setTimeout(function() { $(ui.draggable).remove(); }, 1000);
>
> ...and it works! Or you can do this:
>
> $(ui.draggable).hide('slow', function() {
>   $(this).remove();
>
> });
>
> ...and it works as well as you can see in this demo:http://jquery-ui.googlecode.com/svn/trunk/demos/sortable/connect-list...
>
> So it seems that the ui.draggable can't be removed immediately after
> the drop callback is triggered and I think it's a bug.
>
> I will create a ticket for it. Thanks for reporting it!
>
> --
> Bohdan
>

Bohdan Ganicky

unread,
Feb 10, 2009, 7:15:34 AM2/10/09
to jQuery UI Development
Paul Bakaus fixed both issues already. Proof that reporting bugs is
very much useful. :)

Thanks again for reporting and take care.

--
Bohdan
Reply all
Reply to author
Forward
0 new messages