Index: trunk/extensions/UploadWizard/js/mw.UploadWizard.js |
— | — | @@ -1784,12 +1784,12 @@ |
1785 | 1785 | }, |
1786 | 1786 | */ |
1787 | 1787 | |
| 1788 | + /** |
| 1789 | + * Reset the entire interface so we can upload more stuff |
| 1790 | + * Depending on whether we split uploading / detailing, it may actually always be as simple as loading a URL |
| 1791 | + */ |
1788 | 1792 | reset: function() { |
1789 | | - var _this = this; |
1790 | | - $j.each( _this.uploads, function( i, upload ) { |
1791 | | - _this.removeUpload( upload ); |
1792 | | - } ); |
1793 | | - _this.uploads = []; |
| 1793 | + window.location.reload(); |
1794 | 1794 | }, |
1795 | 1795 | |
1796 | 1796 | |
— | — | @@ -1873,7 +1873,7 @@ |
1874 | 1874 | |
1875 | 1875 | $j( '.mwe-upwiz-button-begin' ) |
1876 | 1876 | .append( gM( 'mwe-upwiz-upload-another' ) ) |
1877 | | - .click( _this.reset() ); |
| 1877 | + .click( function() { _this.reset() } ); |
1878 | 1878 | |
1879 | 1879 | $j( '.mwe-upwiz-button-next' ) |
1880 | 1880 | .append( gM( 'mwe-upwiz-next' ) ) |