Add Symlink as a drop action

This commit is contained in:
Nathan Gray 2014-11-18 00:09:38 +00:00
parent cad253627b
commit ecdbff6edd
2 changed files with 8 additions and 1 deletions

View File

@ -192,6 +192,13 @@ class filemanager_ui
'caption' => lang('Copy into folder'),
'type' => 'drop',
'onExecute' => 'javaScript:app.filemanager.drop'
),
'file_drop_symlink' => array(
'icon' => 'linkpaste',
'acceptedTypes' => 'file',
'caption' => lang('Link into folder'),
'type' => 'drop',
'onExecute' => 'javaScript:app.filemanager.drop'
)
);
if (!isset($GLOBALS['egw_info']['user']['apps']['mail']))

View File

@ -614,7 +614,7 @@ app.classes.filemanager = AppJS.extend(
dst = this.dirname(dst);
}
this._do_action(_action.id == "file_drop_move" ? 'move' : 'copy', src, false, dst);
this._do_action(_action.id.replace("file_drop_",''), src, false, dst);
},
/**