mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Get tree working in admin
This commit is contained in:
parent
79bcabc888
commit
976c5261a9
@ -559,7 +559,7 @@ class admin_ui
|
|||||||
{
|
{
|
||||||
$data['id'] = $root.($app == 'admin' ? 'admin' : 'apps/'.$app).'/';
|
$data['id'] = $root.($app == 'admin' ? 'admin' : 'apps/'.$app).'/';
|
||||||
$matches = null;
|
$matches = null;
|
||||||
if (preg_match_all('/(menuaction|load)=([^&]+)/', $data['link'], $matches))
|
if(preg_match_all('/(menuaction|load)=([^&\',]+)/', $data['link'], $matches))
|
||||||
{
|
{
|
||||||
$data[Tree::ID] .= $matches[2][(int)array_search('load', $matches[1])];
|
$data[Tree::ID] .= $matches[2][(int)array_search('load', $matches[1])];
|
||||||
}
|
}
|
||||||
|
@ -536,6 +536,16 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
|||||||
item.focused = true
|
item.focused = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public openItem(_id)
|
||||||
|
{
|
||||||
|
let item = this.getNode(_id);
|
||||||
|
if(item)
|
||||||
|
{
|
||||||
|
item.open = true;
|
||||||
|
}
|
||||||
|
this.requestUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hasChildren
|
* hasChildren
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user