Add drop actions as placeholders so you can drop into an empty folder.

This commit is contained in:
Nathan Gray 2014-11-18 00:25:37 +00:00
parent ecdbff6edd
commit 7fd377df56
2 changed files with 3 additions and 2 deletions

View File

@ -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();
}

View File

@ -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);
}