[BUGFIX] Faulty expand/collapse behavior in Element Browser 77/23877/5
authorOliver Hader <oliver@typo3.org>
Wed, 7 Aug 2013 17:01:53 +0000 (19:01 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 17 Sep 2013 18:31:46 +0000 (20:31 +0200)
commitfd534b6aa3cdb45509f83f816b5e58730fcb67e0
tree56944779ba7defa6ec9f54a82ffcec5240a6792f
parentce68bcd5c33dd5d07ce5139eb3ea564f4f13d013
[BUGFIX] Faulty expand/collapse behavior in Element Browser

On using the element browser in combination with files, the
expand/collapse behavior is wrong. On opening a collapsed folder,
an AJAX call fetches the sub-nodes that will be added to the DOM
tree. However, the calling scope of the original rendering
process and the AJAX call differ a lot.
The only possibility to get this working is to transfer the
scope and rebuild it in the AJAX context.

Change-Id: I1bf7b56ae2d82d15e0246bd651f77793adde705b
Fixes: #45859
Releases: 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/23877
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/class.browse_links.php
typo3/js/tree.js
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php