filemanager redirected /apps/$app to webdav.php instead of opening it, using now css class isDir as further indicator for directories, eg. with symlink mime-type

This commit is contained in:
Ralf Becker 2013-10-14 09:01:03 +00:00
parent ceb20da716
commit 69a809cb3f

View File

@ -453,7 +453,8 @@ app.filemanager = AppJS.extend(
{
var data = egw.dataGetUIDdata(_senders[0].id);
var path = this.id2path(_senders[0].id);
if (data.data.mime == 'httpd/unix-directory')
// symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir'
if (data.data.mime == 'httpd/unix-directory' || data.data['class'] && data.data['class'].split(/ +/).indexOf('isDir') != -1)
{
this.change_dir(path);
}