summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-10-21 19:49:09 +0200
committerkondou <kondou@ts.unde.re>2013-10-21 19:49:27 +0200
commit732e7db31902e88e4ca6582c56af14b5e3d2bc39 (patch)
treec8f094fe7b80774fc3c207a86120e8eeb212e5e0 /apps/files/js/filelist.js
parent7864a3bf07fab1183bc003e771ee365fc1376c73 (diff)
downloadnextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.tar.gz
nextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.zip
Fix mind-boggling emptycontent logic
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 20930b2dce8..17e7fb6440e 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -623,7 +623,7 @@ var FileList={
var $fileList = $('#fileList');
var permissions = $('#permissions').val();
var isCreatable = (permissions & OC.PERMISSION_CREATE) !== 0;
- $('#emptycontent').toggleClass('hidden', $fileList.find('tr').length > 0);
+ $('#emptycontent').toggleClass('hidden', !isCreatable || $fileList.find('tr').length > 0);
$('#filestable th').toggleClass('hidden', $fileList.find('tr').length === 0);
},
showMask: function(){