From: Patrick Date: Wed, 17 Aug 2011 11:31:20 +0000 (+0200) Subject: [BUGFIX] Enlarge on click for images does not open a popup X-Git-Tag: TYPO3_4-6-0beta2~60 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/8577bd35af8c29de2c071b0600ff0fc17815cb55?ds=sidebyside [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 --- diff --git a/typo3/sysext/cms/tslib/class.tslib_fe.php b/typo3/sysext/cms/tslib/class.tslib_fe.php index f6ca213bad9..ad2d0b31817 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'] = ' +';