jQuery: The Write Less, Do More JavaScript Library

Refreshing droppable locations

View: New views
2 Messages — Rating Filter:   Alert me  

Refreshing droppable locations

by Keith Otto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a list, with many levels of child lists within some LI
elements. These child lists are set to display:none until you click on
their parent to display the first level of children.

I'm implementing the ability to drag the LI elements around in order
to change their parent to a different item. This works fine for the
first level of elements.

I added to the 'over' event of droppable to change child lists to
display: block if you drag over an LI with children. My problem is
when this list appears, and I continue dragging down to the first
child element, it actually hightlights the next root level element
(sibling to the parent that just expanded) which used to be in that
location before changing the display.

Is there any way to refresh the locations of the droppable items?

Re: Refreshing droppable locations

by Richard D. Worth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See


- Richard

On Wed, Nov 4, 2009 at 6:38 PM, Keith Otto <keithotto@...> wrote:
I have a list, with many levels of child lists within some LI
elements. These child lists are set to display:none until you click on
their parent to display the first level of children.

I'm implementing the ability to drag the LI elements around in order
to change their parent to a different item. This works fine for the
first level of elements.

I added to the 'over' event of droppable to change child lists to
display: block if you drag over an LI with children. My problem is
when this list appears, and I continue dragging down to the first
child element, it actually hightlights the next root level element
(sibling to the parent that just expanded) which used to be in that
location before changing the display.

Is there any way to refresh the locations of the droppable items?