Bug #6477
adding external javascript are not performed with the correct TYPO3 API call
| Status: | New | Start date: | 2010-02-16 | ||
|---|---|---|---|---|---|
| Priority: | Should have | Due date: | |||
| Assignee: | - | % Done: | 50% |
||
| Category: | - | ||||
| Target version: | - | ||||
| Votes: | 0 |
Description
The implementation of tx_ptjqueryui_manager->generateIncludes() can be improved. In stead of
$GLOBALS['TSFE']->additionalJavaScript[$this->extKey] = implode("\n", $this->data);
it should be
foreach ($this->data as $jsFile) {
$GLOBALS['TSFE']->setJS($jsFile);
}
Note: the attached patch has also corrected the indentation to all tabs in stead of mixed spaces and tabs