- Zin: Remove children params.
This commit is contained in:
@@ -51,12 +51,16 @@ class tree extends wg
|
||||
$item['actions'] = array();
|
||||
$item['actions']['items'] = array();
|
||||
|
||||
if($canEdit) $item['actions']['items'][] = array('key' => 'edit', 'icon' => 'edit', 'id' => $item['id'], 'editType' => $editType, 'onClick' => jsRaw('(event, item) => window.editItem(item)'));
|
||||
if($canDelete) $item['actions']['items'][] = array('key' => 'delete', 'icon' => 'trash', 'id' => $item['id'], 'className' => 'btn ghost toolbar-item square size-sm rounded ajax-submit','url' => helper::createLink('tree', 'delete', 'module=' . $item['id']));
|
||||
if($canSplit) $item['actions']['items'][] = array('key' => 'view', 'icon' => 'split', 'url' => $item['url']);
|
||||
if($canEdit) $item['actions']['items'][] = array('key' => 'edit', 'icon' => 'edit', 'id' => $item['id'], 'editType' => $editType, 'onClick' => jsRaw('(event, item) => window.editItem(item)'));
|
||||
if($canDelete) $item['actions']['items'][] = array('key' => 'delete', 'icon' => 'trash', 'id' => $item['id'], 'className' => 'btn ghost toolbar-item square size-sm rounded ajax-submit','url' => helper::createLink('tree', 'delete', 'module=' . $item['id']));
|
||||
if($canSplit) $item['actions']['items'][] = array('key' => 'view', 'icon' => 'split', 'url' => $item['url']);
|
||||
}
|
||||
|
||||
if(isset($item['children'])) $item['items'] = $this->buildTree($item['children']);
|
||||
if(isset($item['children']))
|
||||
{
|
||||
$item['items'] = $this->buildTree($item['children']);
|
||||
unset($item['children']);
|
||||
}
|
||||
$items[$key] = $item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user