From 8577bd35af8c29de2c071b0600ff0fc17815cb55 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 17 Aug 2011 13:31:20 +0200 Subject: [PATCH] [BUGFIX] Enlarge on click for images does not open a popup With issue #27983 some deprecated parts were removed but obviously too much. Although $GLOBALS['TSFE']->additionalJavascript is used throughout the core, after this issue it was never rendered anymore in the frontend. The javascript function openPic was never added to the frontend because of this. This patch reinstates the responsible lines which were removed for Enlarge on click Change-Id: I8e182be8e894e49212a5a4249118b44c0e0bd954 Resolves: #29041 Releases: 4.6 Reviewed-on: http://review.typo3.org/4392 Tested-by: Soren Malling Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers Reviewed-by: Jigal van Hemert Tested-by: Jigal van Hemert --- typo3/sysext/cms/tslib/class.tslib_fe.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/typo3/sysext/cms/tslib/class.tslib_fe.php b/typo3/sysext/cms/tslib/class.tslib_fe.php index f6ca213bad98..ad2d0b318175 100644 --- a/typo3/sysext/cms/tslib/class.tslib_fe.php +++ b/typo3/sysext/cms/tslib/class.tslib_fe.php @@ -3215,6 +3215,17 @@ if (version == "n3") { '.trim($this->JSImgCode).' } +// --> + /*]]>*/ +'; + } + if ($this->JSCode || count($this->additionalJavaScript)) { // Add javascript + $this->additionalHeaderData['JSCode'] = ' +'; -- 2.20.1