Index: typo3/class.filelistfoldertree.php
===================================================================
--- typo3/class.filelistfoldertree.php (Revision 7539)
+++ typo3/class.filelistfoldertree.php (Arbeitskopie)
@@ -169,7 +169,7 @@
// if this item is the start of a new level,
// then a new level
is needed, but not in ajax mode
if($v['isFirst'] && !($doCollapse) && !($doExpand && $expandedFolderUid == $uid)) {
- $itemHTML = "\n";
+ $itemHTML = "\n";
}
// add CSS classes to the list item
@@ -179,10 +179,10 @@
$itemHTML .='
'.
$v['HTML'].
- $this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank']);
+ $this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank']) . '
';
- if(!$v['hasSub']) { $itemHTML .= " \n"; }
+ if(!$v['hasSub']) { $itemHTML .= "\n"; }
// we have to remember if this is the last one
// on level X so the last child on level X+1 closes the -tag
@@ -342,6 +342,12 @@
// Add tree:
$treeArr = array_merge($treeArr, $this->tree);
+
+ // if this is an AJAX call, don't run through all mounts, only
+ // show the expansion of the current one, not the rest of the mounts
+ if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
+ break;
+ }
}
return $this->printTree($treeArr);
}