mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 00:06:49 +00:00
15 lines
426 B
JavaScript
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'
|
|
);
|
|
} |