Bug #21106 ยป 12017.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
$pageRenderer->addInlineSettingArray('', $resizableSettings);
|
||
$this->loadJavascriptLib('../t3lib/jsfunc.evalfield.js');
|
||
$this->loadJavascriptLib('jsfunc.tbe_editor.js');
|
||
// @TODO: Change to loadJavascriptLib(), but fix "TS = new typoScript()" issue first - see bug #9494
|
||
$jsFile[] = '<script type="text/javascript" src="'.$this->backPath.'jsfunc.tbe_editor.js"></script>';
|
||
// needed for tceform manipulation (date picker)
|
||
$typo3Settings = array(
|
||
'datePickerUSmode' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat'] ? 1 : 0,
|
t3lib/class.t3lib_tceforms_fe.php (working copy) | ||
---|---|---|
* @return void
|
||
*/
|
||
public function loadJavascriptLib($lib) {
|
||
if (!isset($GLOBALS['TSFE']->additionalHeaderData[$lib])) {
|
||
$GLOBALS['TSFE']->additionalHeaderData[$lib] = '<script type="text/javascript" src="' . $this->backPath . $lib . '"></script>';
|
||
}
|
||
/** @var $pageRenderer t3lib_PageRenderer */
|
||
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRenderer->addJsLibrary($lib, $this->backPath . $lib);
|
||
|
||
}
|
||
/**
|
||
... | ... | |
* @return void
|
||
*/
|
||
public function addStyleSheet($key, $href, $title='', $relation='stylesheet') {
|
||
if (!isset($GLOBALS['TSFE']->additionalHeaderData[$key])) {
|
||
$GLOBALS['TSFE']->additionalHeaderData[$key] = '<link rel="' . $relation . '" type="text/css" href="' . $href . '"' . ($title ? (' title="' . $title . '"') : '') . ' />';
|
||
}
|
||
/** @var $pageRenderer t3lib_PageRenderer */
|
||
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRenderer->addCssFile($this->backPath . $href, $relation, 'screen', $title);
|
||
}
|
||
/**
|