Bug Tracker

Opened 14 years ago

Last modified 13 years ago

#880 closed bug

Removing sortable from a droppable gives an error — at Initial Version

Reported by: stephen@… 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.

Change History (0)

Note: See TracTickets for help on using tickets.