Project

General

Profile

Actions

Bug #19813

closed

loadJavascriptLib needs second param to be unique

Added by Steffen Kamper almost 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-01-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the function loadJavascriptLib in BE, the unique-check is done with the path.

This may be insufficient. When it comes to extJs you may load specific adapter. They have different paths, but they are not allowed to be incliuded both.

This patch adds a second param "name" that should be unique. The parameter is optional, if you miss it, it will be filled with the path.

Example:
$this->doc->loadJavascriptLib(''contrib/extjs/adapter/prototype/ext-prototype-adapter.js', 'extjs-Adapter');

(issue imported from #M10122)


Files

10122.diff (1.19 KB) 10122.diff Administrator Admin, 2009-01-13 15:36
Actions #1

Updated by Steffen Kamper over 15 years ago

not needed any more

Actions

Also available in: Atom PDF