Merge pull request #5831 from owncloud/files-charatissue
Fixed total dirs/files message hiding condition
This commit is contained in:
commit
ac0e87b1cc
1 changed files with 3 additions and 3 deletions
|
@ -660,19 +660,19 @@ var FileList={
|
|||
$('.summary .filesize').html(humanFileSize(fileSummary.totalSize));
|
||||
|
||||
// Show only what's necessary (may be hidden)
|
||||
if ($dirInfo.html().charAt(0) === "0") {
|
||||
if (fileSummary.totalDirs === 0) {
|
||||
$dirInfo.hide();
|
||||
$connector.hide();
|
||||
} else {
|
||||
$dirInfo.show();
|
||||
}
|
||||
if ($fileInfo.html().charAt(0) === "0") {
|
||||
if (fileSummary.totalFiles === 0) {
|
||||
$fileInfo.hide();
|
||||
$connector.hide();
|
||||
} else {
|
||||
$fileInfo.show();
|
||||
}
|
||||
if ($dirInfo.html().charAt(0) !== "0" && $fileInfo.html().charAt(0) !== "0") {
|
||||
if (fileSummary.totalDirs > 0 && fileSummary.totalFiles > 0) {
|
||||
$connector.show();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue