[BUGFIX] Click in TypoScript object browser is broken 45/44645/3
authorFrank Nägler <frank.naegler@typo3.org>
Mon, 9 Nov 2015 17:40:59 +0000 (18:40 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 9 Nov 2015 17:49:03 +0000 (18:49 +0100)
This patch scroll the page down, so the just opened subtree is visible again.

Resolves: #71446
Resolves: #71397
Releases: master
Change-Id: I54012a974e4361b4c8428252f4319c259dd2fc02
Reviewed-on: https://review.typo3.org/44645
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/tstemplate/Resources/Public/JavaScript/TypoScriptObjectBrowser.js

index e3dd9d3..6891c3c 100644 (file)
@@ -30,4 +30,7 @@ define(['jquery', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
                }
        });
 
+       if (self.location.hash) {
+               window.scrollTo(window.pageXOffset, window.pageYOffset - 40);
+       }
 });