Fixed bug: #16524: No inline relation to tables with tabs possible
authorOliver Hader <oliver.hader@typo3.org>
Sat, 22 Jan 2011 17:45:16 +0000 (17:45 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 22 Jan 2011 17:45:16 +0000 (17:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10260 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms_inline.php
typo3/templates/helper_javascript_css.html [new file with mode: 0644]

index 5ef0f7e..81d4f10 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-22  Oliver Hader  <oliver.hader@typo3.org>
+
+       * Fixed bug: #16524: No inline relation to tables with tabs possible
+
 2011-01-22  Jigal van Hemert  <jigal@xs4all.nl>
 
        * Fixed bug #17211: Thumbnails in TCEforms have broken clickMenu
index ac34f8b..88d3525 100644 (file)
@@ -2524,7 +2524,7 @@ class t3lib_TCEforms_inline {
         */
        protected function getHeadTags() {
                $headTags = array();
-               $headDataRaw = $this->fObj->JStop();
+               $headDataRaw = $this->fObj->JStop() . $this->getJavaScriptAndStyleSheetsOfPageRenderer();
 
                if ($headDataRaw) {
                                // Create instance of the HTML parser:
@@ -2552,6 +2552,24 @@ class t3lib_TCEforms_inline {
                return $headTags;
        }
 
+       /**
+        * Gets the JavaScript of the pageRenderer.
+        * This can be used to extract newly added files which have been added
+        * during an AJAX request. Due to the spread possibilities of the pageRenderer
+        * to add JavaScript rendering and extracting seems to be the easiest way.
+        *
+        * @return string
+        */
+       protected function getJavaScriptAndStyleSheetsOfPageRenderer() {
+               /** @var $pageRenderer t3lib_PageRenderer */
+               $pageRenderer = clone $GLOBALS['SOBE']->doc->getPageRenderer();
+
+               $pageRenderer->setTemplateFile(TYPO3_mainDir . 'templates/helper_javascript_css.html');
+               $javaScriptAndStyleSheets = $pageRenderer->render();
+
+               return $javaScriptAndStyleSheets;
+       }
+
 
        /**
         * Wraps a text with an anchor and returns the HTML representation.
diff --git a/typo3/templates/helper_javascript_css.html b/typo3/templates/helper_javascript_css.html
new file mode 100644 (file)
index 0000000..7c75523
--- /dev/null
@@ -0,0 +1,12 @@
+###CSS_INCLUDE###
+###CSS_INLINE###
+
+###JS_LIBS###
+###JS_INCLUDE###
+###JS_INLINE###
+###HEADERDATA###
+
+###JS_LIBS_FOOTER###
+###JS_INCLUDE_FOOTER###
+###JS_INLINE_FOOTER###
+###FOOTERDATA###
\ No newline at end of file