Yes I'm using both jQuery and jQueryUI in some of my extensions and they've broken in MediaWiki 1.17 because neither of them are being loaded any more. I've tried many different variations of using $wgOut->addModules and setting items in $wgResourceModules but no matter what I do I can't seem to get the jQuery scripts to load. The browsers error log just says that the $, jQuery and other functions aren't defined.
On 01/08/11 23:51, Jelle Zijlstra wrote:
Are you aware that jQuery and jQuery UI are two different things?
2011/8/1 Aran Dunkley aran@organicdesign.co.nz
Hello, I'm trying to update some of my extensions to work with the ResourceLoader in 1.17, and I can't work out how to get jQuery to load. I've tried the example at
http://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_d...
and tried adding it directly, $out->addModules( array( 'jquery.ui' ) );
But nothing I do will actually get the script to load and become available, can anyone tell me the new syntax to get jQuery there?
Thanks, Aran
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l