Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/AddMediaWizard/AddMediaWizard.js |
— | — | @@ -1,10 +1,11 @@ |
2 | 2 | |
3 | 3 | /* JavaScript for AddMediaWizard gadget */ |
| 4 | +if ( wgWikiEditorEnabledModules.addMediaWizard ) { |
| 5 | + if( typeof mwAddMediaConfig == 'undefined'){ |
| 6 | + mwAddMediaConfig = {}; |
| 7 | + } |
| 8 | + mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ]; |
4 | 9 | |
5 | | -if( typeof mwAddMediaConfig == 'undefined'){ |
6 | | - mwAddMediaConfig = {}; |
| 10 | + // Transclude mwEmbed support |
| 11 | + importScriptURI('http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage ); |
7 | 12 | } |
8 | | -mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ]; |
9 | | - |
10 | | -// Transclude mwEmbed.js |
11 | | -importScriptURI('http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage ); |