r87367 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87366‎ | r87367 | r87368 >
Date:23:16, 3 May 2011
Author:kaldari
Status:ok
Tags:
Comment:
adding missing tests, follow-up to r87359
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -666,13 +666,13 @@
667667 );
668668 $j( '#contentSub' ).append( feedbackLink );
669669 }
670 - if ( mw.UploadWizard.config['bugList'] !== '' ) {
 670+ if ( mw.isDefined( mw.UploadWizard.config['bugList'] ) && mw.UploadWizard.config['bugList'] !== '' ) {
671671 $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-bugs', mw.UploadWizard.config['bugList'] ) );
672672 }
673 - if ( mw.UploadWizard.config['translateHelp'] !== '' ) {
 673+ if ( mw.isDefined( mw.UploadWizard.config['translateHelp'] ) && mw.UploadWizard.config['translateHelp'] !== '' ) {
674674 $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-translate', mw.UploadWizard.config['translateHelp'] ) );
675675 }
676 - if ( mw.UploadWizard.config['altUploadForm'] !== '' ) {
 676+ if ( mw.isDefined( mw.UploadWizard.config['altUploadForm'] ) && mw.UploadWizard.config['altUploadForm'] !== '' ) {
677677 $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-alt-upload', mw.UploadWizard.config['altUploadForm'] ) );
678678 }
679679 $j( '#contentSub .contentSubLink:not(:last)' ).after( '&nbsp;&middot;&nbsp;' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87359new subheader messageskaldari21:30, 3 May 2011

Status & tagging log