Index: branches/js2-work/phase3/js/uploadWizardPage.js |
— | — | @@ -16,21 +16,22 @@ |
17 | 17 | // change title on page too -- this doesn't have to be internationalized yet since this is just for testing |
18 | 18 | // when it has its own page it will have a real title |
19 | 19 | $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 |
20 | 23 | |
21 | 24 | mw.load( 'UploadWizard.UploadWizardTest', function () { |
| 25 | + |
| 26 | + mw.setConfig('debug', true); |
22 | 27 | |
23 | 28 | mw.setDefaultConfig('uploadHandlerClass', null); |
24 | 29 | mw.setConfig('userName', wgUserName); |
25 | 30 | mw.setConfig('userLanguage', wgUserLanguage); |
26 | 31 | mw.setConfig('fileExtensions', wgFileExtensions); |
27 | 32 | 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 | | - ]); |
33 | 33 | mw.setConfig('thumbnailWidth', 220); // new standard size |
34 | 34 | |
| 35 | + |
35 | 36 | var uploadWizard = new mw.UploadWizard(); |
36 | 37 | uploadWizard.createInterface(wizardDiv); |
37 | 38 | |