mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
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
|
@ -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
Add a link
Reference in a new issue