mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Get filemanager edit popup working in et2
This commit is contained in:
parent
5da191b583
commit
70459abae9
@ -306,6 +306,11 @@ class filemanager_hooks
|
|||||||
static function search_link()
|
static function search_link()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
'edit' => array(
|
||||||
|
'menuaction' => 'filemanager.filemanager_ui.file',
|
||||||
|
),
|
||||||
|
'edit_id' => 'path',
|
||||||
|
'edit_popup' => '495x425',
|
||||||
'mime' => array(
|
'mime' => array(
|
||||||
egw_vfs::DIR_MIME_TYPE => array(
|
egw_vfs::DIR_MIME_TYPE => array(
|
||||||
'menuaction' => 'filemanager.filemanager_ui.index',
|
'menuaction' => 'filemanager.filemanager_ui.index',
|
||||||
|
@ -1248,13 +1248,30 @@ function force_download(_action, _senders)
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
if (($extra_tabs = egw_vfs::getExtraInfo($path,$content)))
|
if (($extra_tabs = egw_vfs::getExtraInfo($path,$content)))
|
||||||
|
{
|
||||||
|
if(method_exists($tpl,'get_widget_by_name'))
|
||||||
{
|
{
|
||||||
$tabs =& $tpl->get_widget_by_name('tabs=general|perms|eacl|preview|custom');
|
$tabs =& $tpl->get_widget_by_name('tabs=general|perms|eacl|preview|custom');
|
||||||
|
} else {
|
||||||
|
// et2
|
||||||
|
$tabs =& $tpl->getElementAttribute('tabs','tabs');
|
||||||
|
}
|
||||||
|
|
||||||
foreach(isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab)
|
foreach(isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab)
|
||||||
|
{
|
||||||
|
if(method_exists($tpl,'get_widget_by_name'))
|
||||||
{
|
{
|
||||||
$tabs['name'] .= '|'.$extra_tab['name'];
|
$tabs['name'] .= '|'.$extra_tab['name'];
|
||||||
$tabs['label'] .= '|'.$extra_tab['label'];
|
$tabs['label'] .= '|'.$extra_tab['label'];
|
||||||
$tabs['help'] .= '|'.$extra_tab['help'];
|
$tabs['help'] .= '|'.$extra_tab['help'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$tabs[] = array(
|
||||||
|
'label' => $extra_tab['label'],
|
||||||
|
'template' => $extra_tab['name']
|
||||||
|
);
|
||||||
|
}
|
||||||
if ($extra_tab['data'] && is_array($extra_tab['data']))
|
if ($extra_tab['data'] && is_array($extra_tab['data']))
|
||||||
{
|
{
|
||||||
$content = array_merge($content, $extra_tab['data']);
|
$content = array_merge($content, $extra_tab['data']);
|
||||||
|
Loading…
Reference in New Issue
Block a user