Remove edit action:

- Let the "open" action finds out about the correct handler based on
file's mime type
This commit is contained in:
Hadi Nategh 2017-09-25 17:27:17 +02:00
parent 1c97cf7c0e
commit abf5ed6cb5
2 changed files with 7 additions and 14 deletions

View File

@ -131,13 +131,6 @@ class filemanager_ui
'onExecute' => 'javaScript:app.filemanager.open', 'onExecute' => 'javaScript:app.filemanager.open',
'default' => true 'default' => true
), ),
'modify' => array(
'caption' => lang('Edit'),
'group' => $group,
'icon' => 'edit',
'onExecute' => 'javaScript:app.filemanager.open',
'enabled' => 'javaScript:app.filemanager.isEditable',
),
'new' => array( 'new' => array(
'caption' => 'New', 'caption' => 'New',
'group' => $group, 'group' => $group,

View File

@ -771,7 +771,7 @@ app.classes.filemanager = AppJS.extend(
{ {
mime_dom.click(); 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', { egw.open_link(egw.link('/index.php', {
menuaction: 'filemanager.filemanager_ui.editor', menuaction: 'filemanager.filemanager_ui.editor',