Project

General

Profile

Bug #21106 ยป 12017.diff

Administrator Admin, 2009-09-20 20:58

View differences:

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);
}
/**
    (1-1/1)