Improve updateEmptyContent logic
This commit is contained in:
parent
60b25a2e97
commit
40cc57ab3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue