CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #6477

adding external javascript are not performed with the correct TYPO3 API call

Added by Lieuwe Hummel over 3 years ago. Updated over 2 years ago.

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

class.tx_ptjqueryui_manager.php.diff - patch to fix the issue (24.2 kB) Lieuwe Hummel, 2010-02-16 10:45

Also available in: Atom PDF