Skip to main content

Bug Tracker

Side navigation

#880 closed bug (wontfix)

Opened January 24, 2007 05:03PM UTC

Closed March 31, 2008 01:24AM UTC

Removing sortable from a droppable gives an error

Reported by: stephen@23z.com Owned by: stefan
Priority: major Milestone:
Component: interface Version: 1.1
Keywords: Cc:
Blocked by: Blocking:
Description

I'm using Sortables to re-arrange items in a list plus Dropables to allow items from the list to be destroyed:

$("ul.column").Sortable(

{

accept: "section",

handle: ".handle",

activeclass: "columnActive",

hoverclass: "columnHover",

helperclass: "sortHelper",

opacity: 0.6,

fx: 200,

tolerance: "intersect"

});

$("#trash").Droppable(

{

accept: "section",

activeclass: "trashActive",

hoverclass: "trashHover",

ondrop: removeSection,

tolerance: "intersect"

});

function removeSection(drag)

{

drag.parentNode.removeChild(drag);

return(false);

}

This used to work in 1.0 but in 1.1.1 the item being dragged reappears once more.

Attachments (0)
Change History (1)

Changed March 31, 2008 01:24AM UTC by scott.gonzal comment:1

description: I'm using Sortables to re-arrange items in a list plus Dropables to allow items from the list to be destroyed:\ \ $("ul.column").Sortable(\ {\ accept: "section",\ handle: ".handle",\ activeclass: "columnActive",\ hoverclass: "columnHover",\ helperclass: "sortHelper",\ opacity: 0.6,\ fx: 200,\ tolerance: "intersect"\ });\ $("#trash").Droppable(\ {\ accept: "section",\ activeclass: "trashActive",\ hoverclass: "trashHover",\ ondrop: removeSection,\ tolerance: "intersect"\ });\ \ function removeSection(drag)\ {\ drag.parentNode.removeChild(drag);\ \ return(false);\ }\ \ This used to work in 1.0 but in 1.1.1 the item being dragged reappears once more.\ I'm using Sortables to re-arrange items in a list plus Dropables to allow items from the list to be destroyed: \ \ $("ul.column").Sortable( \ { \ accept: "section", \ handle: ".handle", \ activeclass: "columnActive", \ hoverclass: "columnHover", \ helperclass: "sortHelper", \ opacity: 0.6, \ fx: 200, \ tolerance: "intersect" \ }); \ $("#trash").Droppable( \ { \ accept: "section", \ activeclass: "trashActive", \ hoverclass: "trashHover", \ ondrop: removeSection, \ tolerance: "intersect" \ }); \ \ function removeSection(drag) \ { \ drag.parentNode.removeChild(drag); \ \ return(false); \ } \ \ This used to work in 1.0 but in 1.1.1 the item being dragged reappears once more. \
need: → Review
resolution: → wontfix
status: newclosed

Interface is no longer supported; consider switching to jQuery UI.