Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -1006,7 +1006,7 @@ |
1007 | 1007 | function( upload ) { |
1008 | 1008 | upload.start(); |
1009 | 1009 | }, |
1010 | | - function() { |
| 1010 | + function() { |
1011 | 1011 | allowCloseWindow(); |
1012 | 1012 | $j().notify( gM( 'mwe-upwiz-files-complete' ) ); |
1013 | 1013 | _this.showFileNext(); |
— | — | @@ -1093,6 +1093,7 @@ |
1094 | 1094 | // $j( '#mwe-upwiz-upload-ctrl' ).attr( 'disabled', 'disabled' ); |
1095 | 1095 | $j( '#mwe-upwiz-upload-ctrl-container' ).hide(); |
1096 | 1096 | |
| 1097 | + |
1097 | 1098 | // remove the border from the filelist. We can't hide it or make it invisible since it contains the displaced |
1098 | 1099 | // file input element that becomes the "click here to add" |
1099 | 1100 | $j( '#mwe-upwiz-filelist' ).removeClass( 'mwe-upwiz-filled-filelist' ); |
— | — | @@ -1104,6 +1105,11 @@ |
1105 | 1106 | $j( '#mwe-upwiz-add-file span' ).msg( 'mwe-upwiz-add-file-0' ); |
1106 | 1107 | $j( '#mwe-upwiz-add-file-container' ).addClass('mwe-upwiz-add-files-0'); |
1107 | 1108 | $j( '#mwe-upwiz-add-file-container' ).removeClass('mwe-upwiz-add-files-n'); |
| 1109 | + |
| 1110 | + // recovering from an earlier attempt to upload |
| 1111 | + $j( '#mwe-upwiz-upload-ctrls' ).show(); |
| 1112 | + $j( '#mwe-upwiz-progress' ).hide(); |
| 1113 | + $j( '#mwe-upwiz-add-file' ).show(); |
1108 | 1114 | } |
1109 | 1115 | |
1110 | 1116 | // allow an "add another upload" button only if we aren't at max |