Bug #19421 ยป 0009494.patch
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
* @return string A section with JavaScript - if $update is false, embedded in <script></script>
|
||
*/
|
||
function JSbottom($formname='forms[0]', $update = false) {
|
||
$jsFile = array();
|
||
$elements = array();
|
||
// required:
|
||
... | ... | |
$GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('contrib/prototype/prototype.js');
|
||
$GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('../t3lib/jsfunc.evalfield.js');
|
||
$GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('jsfunc.tbe_editor.js');
|
||
$jsFile[] = '<script type="text/javascript" src="'.$this->backPath.'jsfunc.tbe_editor.js"></script>';
|
||
// if IRRE fields were processed, add the JavaScript functions:
|
||
if ($this->inline->inlineCount) {
|
||
... | ... | |
// Regular direct output:
|
||
if (!$update) {
|
||
$out = chr(10) . chr(9) . t3lib_div::wrapJS($out);
|
||
$spacer = chr(10) . chr(9);
|
||
$out = $spacer.implode($spacer, $jsFile).t3lib_div::wrapJS($out);
|
||
}
|
||
return $out;
|