diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-13 10:52:05 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-13 10:53:16 +0100 |
commit | 5bdfccfc47ad5d10c9fe1a1195571c90e1ee3ae7 (patch) | |
tree | 1f857a1339d4f2dd216e3b831c50f03a9e43fd80 /apps | |
parent | dc30056025f63d32de0846bdf14e971988f83cdb (diff) | |
download | nextcloud-server-5bdfccfc47ad5d10c9fe1a1195571c90e1ee3ae7.tar.gz nextcloud-server-5bdfccfc47ad5d10c9fe1a1195571c90e1ee3ae7.zip |
Fixed total dirs/files message hiding condition
Fixes #5829
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 0a94657c2d8..49dd28517be 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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(); } } |