r67779 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67778‎ | r67779 | r67780 >
Date:06:28, 10 June 2010
Author:neilk
Status:deferred
Tags:
Comment:
make reset button reload page... simplest thing for now
Modified paths:
  • /trunk/extensions/UploadWizard/js/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/js/mw.UploadWizard.js
@@ -1784,12 +1784,12 @@
17851785 },
17861786 */
17871787
 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+ */
17881792 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();
17941794 },
17951795
17961796
@@ -1873,7 +1873,7 @@
18741874
18751875 $j( '.mwe-upwiz-button-begin' )
18761876 .append( gM( 'mwe-upwiz-upload-another' ) )
1877 - .click( _this.reset() );
 1877+ .click( function() { _this.reset() } );
18781878
18791879 $j( '.mwe-upwiz-button-next' )
18801880 .append( gM( 'mwe-upwiz-next' ) )

Status & tagging log