Displaying 1 result from an estimated 1 matches for "isparentdropp".
2005 Jul 18
1
fix for scriptaculous dragdrop.js empty list problem
...enkman!)
First, in Sortable.create(), I register the parent element (the UL tag or
whatever), and add an extra property to it to mark it as the parent of the list
in question:
for (var i = 0; i < elements.length; i++){
//register children as droppables, as before...
}
element.isParentDroppable=true;
Droppables.add(element, options_for_droppable);
options.droppables.push(element);
Then under options_for_droppable.onHover, I test for that property:
onHover: function(element, dropon, overlap) {
if (dropon.isParentDroppable){
dropon.appendChild(element);...