Project

General

Profile

Actions

Feature #22708

closed

there is no good way to add inline JS to header from extensions (jsInline is liable to collisions)

Added by Vladimir Podkovanov over 14 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-05-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

There are several PAGE's properties which allow to include user's javascript:
includeJSlibs.[array]
includeJS.[array]
jsInline (->CARRAY)

while first 2 options allow including JS via any text key, jsInline requires number, it is understood as JS lines should be in order
but it is inconvenient in case you create an extension which provides 3rd party JS lib where should be added some inline JS code on every page in order to configure the lib. The only option to include inline config JS is inlineJS but it allows collisions because of numeric keys - any number could be occupied yet in another extension or in main page's template

so is needed some new property to add inline JS from extensions to header

(issue imported from #M14469)

Actions

Also available in: Atom PDF