mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Add drop actions as placeholders so you can drop into an empty folder.
This commit is contained in:
parent
ecdbff6edd
commit
7fd377df56
@ -281,7 +281,8 @@ class filemanager_ui
|
||||
'is_parent' => 'mime',
|
||||
'is_parent_value'=> egw_vfs::DIR_MIME_TYPE,
|
||||
'header_left' => 'filemanager.index.header_left',
|
||||
'favorites' => true
|
||||
'favorites' => true,
|
||||
'placeholder_actions' => array('file_drop_mail','file_drop_move','file_drop_copy','file_drop_symlink')
|
||||
);
|
||||
$content['nm']['path'] = self::get_home_dir();
|
||||
}
|
||||
|
@ -609,7 +609,7 @@ app.classes.filemanager = AppJS.extend(
|
||||
|
||||
// check if target is a file --> use it's directory instead
|
||||
var data = egw.dataGetUIDdata(_target.id);
|
||||
if (data.data.mime != 'httpd/unix-directory')
|
||||
if (!data || data.data.mime != 'httpd/unix-directory')
|
||||
{
|
||||
dst = this.dirname(dst);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user