diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-13 17:22:48 +0400 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-13 17:22:48 +0400 |
commit | ac0e87b1cc2ece9b5f9e44ad054af74ade77f4a1 (patch) | |
tree | 5f2a45b302427fb800b0f6ec64bf4ea417f19f17 /apps | |
parent | 3fa651f2b1754963e3c0c1a30ab6584a72296b02 (diff) | |
parent | 5bdfccfc47ad5d10c9fe1a1195571c90e1ee3ae7 (diff) |
Merge pull request #5831 from owncloud/files-charatissue
Fixed total dirs/files message hiding condition
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(); } } |