Bug #18855 » tceforms-comments.diff
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
$jsFile[] = '<script type="text/javascript" src="'.$this->backPath.'jsfunc.tbe_editor.js"></script>';
|
||
// if IRRE fields were processed, add the JavaScript functions:
|
||
// @todo: remove superflous inclusion of scriptaculous, see some lines above
|
||
if ($this->inline->inlineCount) {
|
||
$jsFile[] = '<script src="'.$this->backPath.'contrib/scriptaculous/scriptaculous.js" type="text/javascript"></script>';
|
||
$jsFile[] = '<script src="'.$this->backPath.'../t3lib/jsfunc.inline.js" type="text/javascript"></script>';
|
||
... | ... | |
';
|
||
// Regular direct output:
|
||
// @todo why do we have the very same check for !$update again which will reset $out ???
|
||
if (!$update) {
|
||
$spacer = chr(10).chr(9);
|
||
/** @todo this seems terribly messed up since $out will be reset
|
||
* what happens to $this->additionalJS_post?
|
||
* how to get that *behind* $jsFile?
|
||
* might be useful if we want to use scriptaculous and/or prototype ourselves
|
||
*/
|
||
$out = $spacer.implode($spacer, $jsFile).t3lib_div::wrapJS($out);
|
||
}
|
||