Merge pull request #5831 from owncloud/files-charatissue

Fixed total dirs/files message hiding condition
remotes/origin/stable6
Morris Jobke 13 years ago
commit ac0e87b1cc
  1. 6
      apps/files/js/filelist.js

@ -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();
} }
} }

Loading…
Cancel
Save