Fixes problems with folder recognition in the JS version.
This commit is contained in:
parent
cbdd185602
commit
76f107cbfe
2 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ h5ai is provided under the terms of the [MIT License](http://github.com/lrsjng/h
|
|||
* updates year in `LICENSE.TXT`
|
||||
* updates es translation
|
||||
* custom headers/footers are now optional and disabled by default
|
||||
* fixes problems with folder recognition in the JS version
|
||||
|
||||
|
||||
### v0.17 - *2011-11-28*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue