Index: trunk/extensions/UploadWizard/UploadWizardPage.js |
— | — | @@ -1,3 +1,4 @@ |
| 2 | + |
2 | 3 | /* |
3 | 4 | * This script is run on [[Special:UploadWizard]]. |
4 | 5 | * Creates an interface for uploading files in multiple steps, hence "wizard" |
— | — | @@ -3,6 +4,18 @@ |
4 | 5 | */ |
5 | 6 | |
| 7 | + |
| 8 | + |
| 9 | +// create UploadWizard |
6 | 10 | mw.ready( function() { |
| 11 | + // add the discussion link, using standard DOM (sigh) since jquery not guaranteed available |
| 12 | + var discussListItem = addPortletLink( 'p-namespaces', |
| 13 | + 'http://usability.wikimedia.org/wiki/Multimedia_talk:Upload_wizard', |
| 14 | + 'Discussion', |
| 15 | + 'usability_upload_wizard_discussion', |
| 16 | + 'Discuss this experimental extension at the Usability wiki'); |
| 17 | + var discussLink = discussListItem.getElementsByTagName( 'a' )[0]; |
| 18 | + discussLink.setAttribute( 'target', 'usability_discussion' ); |
7 | 19 | |
| 20 | + |
8 | 21 | // The namespace for media files. We use this to look up what the URL prefix is on this MediaWiki, usually |
9 | 22 | // 'Image:' or something like that. Defined in defines.php |