mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 03:11:40 +01:00
Remove edit action:
- Let the "open" action finds out about the correct handler based on file's mime type
This commit is contained in:
parent
1c97cf7c0e
commit
abf5ed6cb5
@ -131,13 +131,6 @@ class filemanager_ui
|
||||
'onExecute' => 'javaScript:app.filemanager.open',
|
||||
'default' => true
|
||||
),
|
||||
'modify' => array(
|
||||
'caption' => lang('Edit'),
|
||||
'group' => $group,
|
||||
'icon' => 'edit',
|
||||
'onExecute' => 'javaScript:app.filemanager.open',
|
||||
'enabled' => 'javaScript:app.filemanager.isEditable',
|
||||
),
|
||||
'new' => array(
|
||||
'caption' => 'New',
|
||||
'group' => $group,
|
||||
|
@ -771,7 +771,7 @@ app.classes.filemanager = AppJS.extend(
|
||||
{
|
||||
mime_dom.click();
|
||||
}
|
||||
else if (_action.id == 'modify' && mime && data.data.mime.match(mime.mime_odf_regex))
|
||||
else if (mime && this.isEditable(_action, _senders))
|
||||
{
|
||||
egw.open_link(egw.link('/index.php', {
|
||||
menuaction: 'filemanager.filemanager_ui.editor',
|
||||
|
Loading…
Reference in New Issue
Block a user