Index: trunk/extensions/UploadWizard/UploadWizard.config.php |
— | — | @@ -395,4 +395,7 @@ |
396 | 396 | // Wiki page for reporting issues with the blacklist |
397 | 397 | 'blacklistIssuesPage' => '', |
398 | 398 | |
| 399 | + // Whether multi-file select is enabled -- this is temporary, just waiting for backend code r93270 to be reviewed |
| 400 | + 'enableMultiFileSelect' => false |
| 401 | + |
399 | 402 | ); |
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js |
— | — | @@ -16,10 +16,9 @@ |
17 | 17 | _this.div = $j('<div class="mwe-upwiz-file"></div>').get(0); |
18 | 18 | _this.isFilled = false; |
19 | 19 | |
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"/>'); |
| 20 | + _this.$fileInputCtrl = $j( '<input size="1" class="mwe-upwiz-file-input" name="file" type="file"/>' ); |
| 21 | + if( mw.UploadWizard.config['enableMultiFileSelect'] ) { |
| 22 | + _this.$fileInputCtrl.attr( 'multiple', '1' ); |
24 | 23 | } |
25 | 24 | |
26 | 25 | _this.initFileInputCtrl(); |