r95057 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95056‎ | r95057 | r95058 >
Date:23:20, 19 August 2011
Author:jeroendedauw
Status:ok (Comments)
Tags:lamecommitsummary 
Comment:
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizardDeed.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDeed.js
@@ -56,7 +56,7 @@
5757 .addClass( 'mwe-upwiz-sign' );
5858
5959 var ownWork = mw.UploadWizard.config.licensesOwnWork;
60 - var licenseIsNotDefault = ( ownWork.licenses.length == 1 && ownWork.licenses[0] != ownWork.defaults[0] );
 60+ var licenseIsNotDefault = ( ownWork.licenses.length === 1 && ownWork.licenses[0] !== ownWork.defaults[0] );
6161 _this.showCustomDiv = ownWork.licenses.length > 1 || licenseIsNotDefault;
6262
6363 if ( _this.showCustomDiv ) {
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -1196,7 +1196,7 @@
11971197
11981198 if ( mw.UploadWizard.config.ownWorkOption == 'own' ) {
11991199 var ownWork = mw.UploadWizard.config.licensesOwnWork;
1200 - var licenseIsNotDefault = ( ownWork.licenses.length == 1 && ownWork.licenses[0] != ownWork.defaults[0] );
 1200+ var licenseIsNotDefault = ( ownWork.licenses.length === 1 && ownWork.licenses[0] !== ownWork.defaults[0] );
12011201 return ownWork.licenses.length > 1 || licenseIsNotDefault;
12021202 }
12031203 else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93608do not show custom license selection option when there are no licenses availa...jeroendedauw20:43, 31 July 2011

Comments

#Comment by NeilK (talk | contribs)   13:42, 22 August 2011

wince again

Status & tagging log