Fix shared folder still showing fileheader

This commit is contained in:
kondou 2013-10-21 17:41:03 +02:00
parent 40cc57ab3e
commit 7864a3bf07
2 changed files with 3 additions and 3 deletions

View file

@ -119,7 +119,7 @@ if ($needUpgrade) {
}
$isCreatable = \OC\Files\Filesystem::isCreatable($dir . '/');
$emptyContent = (!isset($files) or !$isCreatable or count($files) > 0 or $ajaxLoad);
$emptyContent = (!isset($files) or count($files) > 0 or $ajaxLoad);
OCP\Util::addscript('files', 'fileactions');
OCP\Util::addscript('files', 'files');

View file

@ -623,8 +623,8 @@ var FileList={
var $fileList = $('#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);
$('#emptycontent').toggleClass('hidden', $fileList.find('tr').length > 0);
$('#filestable th').toggleClass('hidden', $fileList.find('tr').length === 0);
},
showMask: function(){
// in case one was shown before