Project

General

Profile

Bug #24170 » 0016524.patch

Administrator Admin, 2011-01-22 18:03

View differences:

t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie)
*/
protected function getHeadTags() {
$headTags = array();
$headDataRaw = $this->fObj->JStop();
$headDataRaw = $this->fObj->JStop() . $this->getJavaScriptAndStyleSheetsOfPageRenderer();
if ($headDataRaw) {
// Create instance of the HTML parser:
......
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.
*
typo3/templates/helper_javascript_css.html (Revision 0)
###CSS_INCLUDE###
###CSS_INLINE###
###JS_LIBS###
###JS_INCLUDE###
###JS_INLINE###
###HEADERDATA###
###JS_LIBS_FOOTER###
###JS_INCLUDE_FOOTER###
###JS_INLINE_FOOTER###
###FOOTERDATA###
(4-4/4)