diff options
author | kondou <kondou@ts.unde.re> | 2013-10-20 22:55:49 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-10-20 22:55:49 +0200 |
commit | 40cc57ab3e34a99ec28485fd76a7b052b0da17aa (patch) | |
tree | 1547f32aa7b527fdbab10d1af2109fda6a209531 /apps/files | |
parent | 60b25a2e975c6824b3d5a5d4c14960a253aaa705 (diff) | |
download | nextcloud-server-40cc57ab3e34a99ec28485fd76a7b052b0da17aa.tar.gz nextcloud-server-40cc57ab3e34a99ec28485fd76a7b052b0da17aa.zip |
Improve updateEmptyContent logic
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
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 |