[BUGFIX] Enlarge on click for images does not open a popup
authorPatrick <patrick@patrickbroens.nl>
Wed, 17 Aug 2011 11:31:20 +0000 (13:31 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Wed, 17 Aug 2011 20:40:59 +0000 (22:40 +0200)
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

index f6ca213..ad2d0b3 100644 (file)
 if (version == "n3") {
 '.trim($this->JSImgCode).'
 }
 if (version == "n3") {
 '.trim($this->JSImgCode).'
 }
+// -->
+       /*]]>*/
+</script>';
+               }
+               if ($this->JSCode || count($this->additionalJavaScript)) { // Add javascript
+                       $this->additionalHeaderData['JSCode'] = '
+<script type="text/javascript">
+       /*<![CDATA[*/
+<!--
+' . implode(LF, $this->additionalJavaScript) . '
+' . trim($this->JSCode) . '
 // -->
        /*]]>*/
 </script>';
 // -->
        /*]]>*/
 </script>';