forked from extern/egroupware
Disable share actions of download link and attachment if selected item is a folder
This commit is contained in:
parent
02cd6ad719
commit
8ce0de5208
@ -180,7 +180,7 @@ class filemanager_ui
|
|||||||
'onExecute' => 'javaScript:app.filemanager.createdir'
|
'onExecute' => 'javaScript:app.filemanager.createdir'
|
||||||
),
|
),
|
||||||
'mail' => array(
|
'mail' => array(
|
||||||
'caption' => lang('Mail files'),
|
'caption' => lang('Share files'),
|
||||||
'icon' => 'filemanager/mail_post_to',
|
'icon' => 'filemanager/mail_post_to',
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'children' => array(),
|
'children' => array(),
|
||||||
@ -265,6 +265,10 @@ class filemanager_ui
|
|||||||
'hint' => $data['title'],
|
'hint' => $data['title'],
|
||||||
'onExecute' => 'javaScript:app.filemanager.mail',
|
'onExecute' => 'javaScript:app.filemanager.mail',
|
||||||
);
|
);
|
||||||
|
if ($mode == Vfs\Sharing::ATTACH || $mode == Vfs\Sharing::LINK)
|
||||||
|
{
|
||||||
|
$actions['mail']['children']['mail_'.$mode]['disableClass'] = 'isDir';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// This would be done automatically, but we're overriding
|
// This would be done automatically, but we're overriding
|
||||||
|
Loading…
Reference in New Issue
Block a user