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:
Nathan Gray 2014-06-03 20:29:26 +00:00
parent 23ca90c448
commit 4466776e70
2 changed files with 2 additions and 2 deletions

View File

@ -289,6 +289,7 @@ class filemanager_select
'name' => $name,
'path' => $path,
'mime' => $mime,
'is_dir' => $is_dir
);
if ($is_dir && $content['mode'] == 'open-multiple')
{

View File

@ -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')