r67573 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67572‎ | r67573 | r67574 >
Date:22:50, 7 June 2010
Author:neilk
Status:deferred
Tags:
Comment:
hacking in the discussion page for community feedback
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizardPage.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizardPage.js
@@ -1,3 +1,4 @@
 2+
23 /*
34 * This script is run on [[Special:UploadWizard]].
45 * Creates an interface for uploading files in multiple steps, hence "wizard"
@@ -3,6 +4,18 @@
45 */
56
 7+
 8+
 9+// create UploadWizard
610 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' );
719
 20+
821 // The namespace for media files. We use this to look up what the URL prefix is on this MediaWiki, usually
922 // 'Image:' or something like that. Defined in defines.php

Status & tagging log