Actions
Feature #16900
closedUse static method to integrate prototype or script.aculo.us framework
Start date:
2007-01-25
Due date:
% Done:
0%
Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:
Description
Prototype javascript framework and script.aculo.us are used in several backend modules. But also frontend extensions could use these frameworks.
It could possibly happen, that there a two or more extensions which integrate on of these files by <script src="..." type="..."></script>.
To avoid this, it's requested to have a static method like
t3lib_div::includeJSprototype()
that takes care of it and stores a true value to a global variable like $GLOBALS['JSincluded']['prototype']. Now all scripts "know" that prototype.js was included and don't have to do that again.
(issue imported from #M4860)
Files
Actions