diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-11-13 19:43:18 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-11-13 19:43:18 +0100 |
commit | 8d0d0836bae968d3abff5f5ff9db230d449397a6 (patch) | |
tree | 1e860674e40972644148ebd9614981d2ff1f34de /apps/files/js | |
parent | cd4a816c1187639ce6e3982b308c637bdd3f20e9 (diff) | |
parent | 58ff8a86733973980370b4e639203d32b2663d9a (diff) | |
download | nextcloud-server-8d0d0836bae968d3abff5f5ff9db230d449397a6.tar.gz nextcloud-server-8d0d0836bae968d3abff5f5ff9db230d449397a6.zip |
Merge branch 'master' of https://github.com/owncloud/corev6.0.0beta4
Diffstat (limited to 'apps/files/js')
-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(); } } |