mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-15 04:55:00 +02:00
fixed focus move on deleting a sibling of a hidden node
This commit is contained in:
parent
820b400315
commit
3cabf66edf
8
h-m-m
8
h-m-m
|
@ -2656,6 +2656,14 @@ function delete_node_internal(&$mm, $active_node, $exclude_parent = false )
|
|||
)
|
||||
;
|
||||
|
||||
$mm['nodes'][$parent_id]['visible_children'] =
|
||||
array_diff
|
||||
(
|
||||
$mm['nodes'][$parent_id]['visible_children'],
|
||||
[$active_node]
|
||||
)
|
||||
;
|
||||
|
||||
if (count($mm['nodes'][$parent_id]['children'])==0)
|
||||
$mm['nodes'][$parent_id]['is_leaf'] = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue