Improve updateEmptyContent logic

This commit is contained in:
kondou 2013-10-20 22:55:49 +02:00
parent 60b25a2e97
commit 40cc57ab3e
1 changed files with 1 additions and 1 deletions

View File

@ -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