r63799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63798‎ | r63799 | r63800 >
Date:05:01, 16 March 2010
Author:neilk
Status:deferred
Tags:
Comment:
remove language config, unnecessary now with mw.Language
Modified paths:
  • /branches/js2-work/phase3/js/uploadWizardPage.js (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/uploadWizardPage.js
@@ -16,21 +16,22 @@
1717 // change title on page too -- this doesn't have to be internationalized yet since this is just for testing
1818 // when it has its own page it will have a real title
1919 $j('#firstHeading').html("Upload wizard");
 20+
 21+ // configure languages
 22+ // mdale does this statically, we'll do this for now since it will have about the same impact as loading another library anyway
2023
2124 mw.load( 'UploadWizard.UploadWizardTest', function () {
 25+
 26+ mw.setConfig('debug', true);
2227
2328 mw.setDefaultConfig('uploadHandlerClass', null);
2429 mw.setConfig('userName', wgUserName);
2530 mw.setConfig('userLanguage', wgUserLanguage);
2631 mw.setConfig('fileExtensions', wgFileExtensions);
2732 mw.setConfig('token', token);
28 - mw.setConfig('languages', [
29 - { code: 'en', name: 'English' },
30 - { code: 'fr', name: 'Français' },
31 - { code: 'es', name: 'Espagnol' },
32 - ]);
3333 mw.setConfig('thumbnailWidth', 220); // new standard size
3434
 35+
3536 var uploadWizard = new mw.UploadWizard();
3637 uploadWizard.createInterface(wizardDiv);
3738

Status & tagging log