Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: DEV backlog
-
Component/s: Libraries
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
See the sub tasks for details.
Issue Links
| This issue is duplicated by: | ||||
| MDL-18809 | Call javascript files in footer rather then calling it in header of themes |
|
|
|
I remember the IMS CP resource type also uses some "trick" to inject the needed js in the header.
Just to open the discussion to a related thing... I think it would be great to have some standard way to add onLoad and onUnload event listeners within Moodle, instead of having custom onLoad and onUnload js code here and there.
Edited: just for referece there are some nive addlisteners funcions (js) in : http://cvs.moodle.org/contrib/plugins/course/format/topicstree/loadunload.js?revision=1.1
Ciao