mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-05-02 11:54:26 +02: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',
|
'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,
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user