Merge pull request #5737 from owncloud/files-totaldirsnotfoundfix

Fixed totalDirs JS error
This commit is contained in:
Morris Jobke 2013-11-07 05:02:43 -08:00
commit 3e916a9f1d

View file

@ -600,11 +600,11 @@ var FileList={
var $connector = $summary.find('.connector');
// Show only what's necessary, e.g.: no files: don't show "0 files"
if (totalDirs === 0) {
if (summary.totalDirs === 0) {
$dirInfo.hide();
$connector.hide();
}
if (totalFiles === 0) {
if (summary.totalFiles === 0) {
$fileInfo.hide();
$connector.hide();
}