Project

General

Profile

Actions

Feature #16900

closed

Use static method to integrate prototype or script.aculo.us framework

Added by Oliver Hader almost 18 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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

includejslib.patch (3.54 KB) includejslib.patch Administrator Admin, 2007-01-28 17:54
Actions

Also available in: Atom PDF