Fixes problems with folder recognition in the JS version.

This commit is contained in:
Lars Jung 2012-02-13 00:11:19 +01:00
parent cbdd185602
commit 76f107cbfe
2 changed files with 2 additions and 1 deletions

View file

@ -39,7 +39,7 @@
path.parentFolder = folder;
path.label = $a.text();
path.type = $tds.eq(0).find("img").attr("alt") === "[DIR]" ? "folder" : H5AI.core.getFileType(path.label);
path.type = H5AI.util.pathEndsWithSlash(path.label) ? "folder" : H5AI.core.getFileType(path.label);
path.href = $a.attr("href");
path.time = date ? date.getTime() : 0;
path.size = size;