Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -31,7 +31,8 @@ |
32 | 32 | // this.handler = new mw.MockUploadHandler( this ); |
33 | 33 | this.handler = new mw.ApiUploadHandler( this, api ); |
34 | 34 | |
35 | | - this.index = mw.UploadWizardUpload.prototype.count++; |
| 35 | + this.index = mw.UploadWizardUpload.prototype.count; |
| 36 | + mw.UploadWizardUpload.prototype.count++; |
36 | 37 | }; |
37 | 38 | |
38 | 39 | mw.UploadWizardUpload.prototype = { |
— | — | @@ -461,16 +462,16 @@ |
462 | 463 | setTimeout( function() { |
463 | 464 | timeoutMs = timeoutMs * 2 + Math.round( Math.random() * ( timeoutMs / 10 ) ); |
464 | 465 | setSrc(); |
465 | | - }, timeoutMs ) |
| 466 | + }, timeoutMs ); |
466 | 467 | } else { |
467 | 468 | $j.publish( key, null ); |
468 | | - } |
| 469 | + } |
469 | 470 | } ); |
470 | 471 | |
471 | 472 | // executing this should cause a .load() or .error() event on the image |
472 | 473 | function setSrc() { |
473 | 474 | image.src = thumb.thumburl; |
474 | | - }; |
| 475 | + } |
475 | 476 | |
476 | 477 | // and, go! |
477 | 478 | setSrc(); |
— | — | @@ -1298,6 +1299,15 @@ |
1299 | 1300 | .find( '.mwe-upwiz-data' ) |
1300 | 1301 | .morphCrossfade( '.mwe-upwiz-submitting' ); |
1301 | 1302 | |
| 1303 | + // hide errors ( assuming maybe this submission will fix it, if it hadn't blocked ) |
| 1304 | + $j( '#mwe-upwiz-stepdiv-details' ) |
| 1305 | + .find( 'label.mwe-error' ) |
| 1306 | + .hide().empty(); |
| 1307 | + |
| 1308 | + $j( '#mwe-upwiz-stepdiv-details' ) |
| 1309 | + .find( 'input.mwe-error' ) |
| 1310 | + .removeClass( 'mwe-error' ); |
| 1311 | + |
1302 | 1312 | // add the upload progress bar, with ETA |
1303 | 1313 | // add in the upload count |
1304 | 1314 | _this.makeTransitioner( |