summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-10-20 22:55:49 +0200
committerkondou <kondou@ts.unde.re>2013-10-20 22:55:49 +0200
commit40cc57ab3e34a99ec28485fd76a7b052b0da17aa (patch)
tree1547f32aa7b527fdbab10d1af2109fda6a209531 /apps/files
parent60b25a2e975c6824b3d5a5d4c14960a253aaa705 (diff)
downloadnextcloud-server-40cc57ab3e34a99ec28485fd76a7b052b0da17aa.tar.gz
nextcloud-server-40cc57ab3e34a99ec28485fd76a7b052b0da17aa.zip
Improve updateEmptyContent logic
Diffstat (limited to 'apps/files')
-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 5d1b797ab5e..9b66a2e69ae 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -624,7 +624,7 @@ var FileList={
var permissions = $('#permissions').val();
var isCreatable = (permissions & OC.PERMISSION_CREATE) !== 0;
$('#emptycontent').toggleClass('hidden', !isCreatable || $fileList.find('tr').length > 0);
- $('#filestable th').toggleClass('hidden', !(!isCreatable || $fileList.find('tr').length > 0));
+ $('#filestable th').toggleClass('hidden', isCreatable && $fileList.find('tr').length === 0);
},
showMask: function(){
// in case one was shown before