Bug #31325
jQueryUI not loaded with CDN in TYPO3 4.6.0
| Status: | Resolved | Start date: | 2011-10-26 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Juergen Furrer | % Done: | 100% |
|
| Category: | - | Spent time: | 0.50 hour | |
| Target version: | - | Estimated time: | 0.50 hour | |
| Votes: | 0 |
Description
Hey Juergen,
I found a bug in your amazing t3jquery when using TYPO3 4.6.0.
When you set t3jquery options in EM to get jQuery UI via CDN, jQueryUI will not be loaded in TYPO3 4.6.0.
The problem is in class.tx_t3jquery.php on line 187 and following:
if ($confArr['jQueryUiVersion'] != '') {
$params['jsFiles']['https://ajax.googleapis.com/ajax/libs/jqueryui/'.$confArr[' jQueryUiVersion'].'/jquery-ui.min.js'] = array(
# now the next line 'file' is required in TYPO3 4.6.0
# see attached diff of class.t3lib_pagerenderer.php in version 4.5.6 and 4.6.0
'file' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/'.$conf Arr['jQueryUiVersion'].'/jquery-ui.min.js',
'type' => 'text/javascript',
'section' => self::getSection(),
'forceOnTop' => TRUE,
);
}
If you add this line, TYPO3 4.6.0 now includes jQueryUI from CDN.
History
Updated by Juergen Furrer over 1 year ago
- Status changed from New to Accepted
- Assignee set to Juergen Furrer
- Estimated time set to 0.50
Updated by Juergen Furrer over 1 year ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100