In the Site Outline doing click on an expanded item with children doesn't collapse the parent item, instead each child is expanded with the same level items as children.
Example

Staring with this state:

+Parent1

 +Child1

  -Grandchild1

 +Child2

  -No items

 -Child3

After clicking again Parent1 all subitems shows progress animation and the result is:

+Parent1

 +Child1

  -Grandchild1

  -Child1

  -Child2

  -Child3

 +Child2

  -No items

  -Child1

  -Child2

  -Child3

 -Child3

Even Child3 (which is collapsed yet) got the same repeated three children

PS: I think the second click shouldn't be handled through AJAX, it's just a matter of hiding some divs, which can be done with plain JavaScript. The trick might be done showing different dom elements for the same item when collapsed/expanded, one for making the AJAX expand while the other one only takes care of hiding what was collapsed (each one of these dom elements take care of showing the other one while hiding itself)

Comments

arhak’s picture

Sorry, but the indentation wasn't right in the former Example, I'll repeat it here (leading with dots, just in case)
Also the signs were inverted in the former example: plus should mean not expanded while minus should mean already expanded.
The essence remains the same.

Staring with this state:

-Parent1
..-Child1
....+Grandchild1
..-Child2
....+No items
..+Child3

After clicking again Parent1 all subitems shows progress animation and the result is:

-Parent1
..-Child1
....+Grandchild1
....+Child1 // Note: Child1, Child2 & Child3 ONLY exists under Parent1
....+Child2
....+Child3
..-Child2
....+No items
....+Child1
....+Child2
....+Child3
..+Child3

Even Child3 (which is collapsed yet) got the same repeated three children

StevenWill’s picture

Version: 6.x-1.0 » 6.x-1.2

I am also having this issue

markhalliwell’s picture

Component: Code » Drupal/PHP Code

Copy & Pasted: This issue pertains to the 6.x-1.x branch which is now legacy and is over one year old. If this issue is not applicable anymore, please consider closing it. Otherwise, please update this issue appropriately. Will be closed in two weeks if no response.