Javascript in Moodle 2

Re: Javascript in Moodle 2

by Andrew Lyons -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Itamar,

Actually, the way that this is implemented should make life slightly easier for you if anything. The existing YUI2 code is very difficult to work with and disable as it's written as a set of functions.

The YUI3 replacement is written as a set of YUI modules - I believe it should be possible to extend and/or override as appropriate. I think we've ended up with 4 YUI modules in total for:
* general resource and section javascript
* section drag/drop
* resource drag/drop
* drag/drop core (not actually initialized directly)

I'm not sure how you'd entirely *remove* a core YUI module though - it's not something I've tried to do yet! Ruslan may be able to comment further on this,

Andrew