|
|
|
@ -660,19 +660,19 @@ var FileList={ |
|
|
|
$('.summary .filesize').html(humanFileSize(fileSummary.totalSize)); |
|
|
|
$('.summary .filesize').html(humanFileSize(fileSummary.totalSize)); |
|
|
|
|
|
|
|
|
|
|
|
// Show only what's necessary (may be hidden)
|
|
|
|
// Show only what's necessary (may be hidden)
|
|
|
|
if ($dirInfo.html().charAt(0) === "0") { |
|
|
|
if (fileSummary.totalDirs === 0) { |
|
|
|
$dirInfo.hide(); |
|
|
|
$dirInfo.hide(); |
|
|
|
$connector.hide(); |
|
|
|
$connector.hide(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$dirInfo.show(); |
|
|
|
$dirInfo.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
if ($fileInfo.html().charAt(0) === "0") { |
|
|
|
if (fileSummary.totalFiles === 0) { |
|
|
|
$fileInfo.hide(); |
|
|
|
$fileInfo.hide(); |
|
|
|
$connector.hide(); |
|
|
|
$connector.hide(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$fileInfo.show(); |
|
|
|
$fileInfo.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
if ($dirInfo.html().charAt(0) !== "0" && $fileInfo.html().charAt(0) !== "0") { |
|
|
|
if (fileSummary.totalDirs > 0 && fileSummary.totalFiles > 0) { |
|
|
|
$connector.show(); |
|
|
|
$connector.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|