mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
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'
|
||||
),
|
||||
'mail' => array(
|
||||
'caption' => lang('Mail files'),
|
||||
'caption' => lang('Share files'),
|
||||
'icon' => 'filemanager/mail_post_to',
|
||||
'group' => $group,
|
||||
'children' => array(),
|
||||
@ -265,6 +265,10 @@ class filemanager_ui
|
||||
'hint' => $data['title'],
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user