mediawiki-extensions-WikiEd.../modules/ext.wikiEditor.addMediaWizard.js
Trevor Parscal 089b73aa5d * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future
* Moved test resource to the modules folder and registered it
* Fixed tests file to use $ not $j
* Cleaned up syntax in module definitions
2010-09-20 20:06:18 +00:00

15 lines
426 B
JavaScript

/*
* JavaScript for WikiEditor AddMediaWizard integration
*/
$( document ).ready( function() {
if ( typeof mwAddMediaConfig == 'undefined' ) {
mwAddMediaConfig = {};
}
mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ];
// Transclude mwEmbed support
mediaWiki.loader.load(
'http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage,
'text/javascript'
);
}