summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-13 10:52:05 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-13 10:53:16 +0100
commit5bdfccfc47ad5d10c9fe1a1195571c90e1ee3ae7 (patch)
tree1f857a1339d4f2dd216e3b831c50f03a9e43fd80 /apps
parentdc30056025f63d32de0846bdf14e971988f83cdb (diff)
downloadnextcloud-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.js6
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();
}
}