forked from extern/egroupware
Add a is_dir flag to select dialog files info instead of relying on mime.
Makes it possible to navigate into and inside /apps
This commit is contained in:
parent
23ca90c448
commit
4466776e70
@ -289,6 +289,7 @@ class filemanager_select
|
||||
'name' => $name,
|
||||
'path' => $path,
|
||||
'mime' => $mime,
|
||||
'is_dir' => $is_dir
|
||||
);
|
||||
if ($is_dir && $content['mode'] == 'open-multiple')
|
||||
{
|
||||
|
@ -698,7 +698,7 @@ app.classes.filemanager = AppJS.extend(
|
||||
{
|
||||
|
||||
}
|
||||
else if (widget.value.mime == 'httpd/unix-directory')
|
||||
else if (widget.value.is_dir)
|
||||
{
|
||||
var path = null;
|
||||
// Cannot do this, there are multiple widgets named path
|
||||
@ -709,7 +709,6 @@ app.classes.filemanager = AppJS.extend(
|
||||
if(path)
|
||||
{
|
||||
path.set_value(widget.value.path);
|
||||
path.getInstanceManager().postSubmit();
|
||||
}
|
||||
}
|
||||
else if (this.et2 && this.et2.getArrayMgr('content').getEntry('mode') != 'open-multiple')
|
||||
|
Loading…
Reference in New Issue
Block a user