r99799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99798‎ | r99799 | r99800 >
Date:20:07, 14 October 2011
Author:raindrift
Status:ok
Tags:
Comment:
added config option for muti-file select so we can deploy with it off, as 1.18 deploy caused some regressive bugs that can be fixed by pushing trunk.
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js
@@ -16,7 +16,11 @@
1717 _this.div = $j('<div class="mwe-upwiz-file"></div>').get(0);
1818 _this.isFilled = false;
1919
20 - _this.$fileInputCtrl = $j('<input size="1" class="mwe-upwiz-file-input" name="file" type="file" multiple="1"/>');
 20+ if( mw.UploadWizard.config[ 'enableMultiFileSelect' ] ) {
 21+ _this.$fileInputCtrl = $j('<input size="1" class="mwe-upwiz-file-input" name="file" type="file" multiple="1"/>');
 22+ } else {
 23+ _this.$fileInputCtrl = $j('<input size="1" class="mwe-upwiz-file-input" name="file" type="file"/>');
 24+ }
2125
2226 _this.initFileInputCtrl();
2327

Follow-up revisions

RevisionCommit summaryAuthorDate
r100089default value for enableMultiFileSelect, removed a line of redundant codeneilk21:12, 17 October 2011
r100916rebranch from trunk at r99799, to turn off multi-file select in prod we need ...neilk00:24, 27 October 2011
r100918rebranching from trunk at r99799 -- need config flag to turn off multi-file s...neilk00:29, 27 October 2011

Status & tagging log