jenkins-bot has submitted this change and it was merged.

Change subject: Move global remove handling out of UWU
......................................................................


Move global remove handling out of UWU

Change-Id: Ia55139d9cf9bdb96bdddcfa7acabf7491af5ebf5
---
M resources/mw.UploadWizard.js
M resources/mw.UploadWizardUpload.js
2 files changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Gilles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index 5b5bd0d..1c8db81 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -543,6 +543,11 @@
                        );
 
                        this.updateFileCounts();
+
+                       if ( this.uploads && this.uploads.length !== 0 ) {
+                               // check all uploads, if they're complete, show 
the next button
+                               this.showNext( 'file', 'stashed' );
+                       }
                },
 
                /**
diff --git a/resources/mw.UploadWizardUpload.js 
b/resources/mw.UploadWizardUpload.js
index 65de91c..0101a0f 100644
--- a/resources/mw.UploadWizardUpload.js
+++ b/resources/mw.UploadWizardUpload.js
@@ -141,9 +141,6 @@
                // we signal to the wizard to update itself, which has to 
delete the
                // final vestige of this upload
                this.emit( 'remove-upload' );
-
-               // check all uploads, if they're complete, show the next button
-               this.wizard.showNext( 'file', 'stashed' );
        };
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/170350
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia55139d9cf9bdb96bdddcfa7acabf7491af5ebf5
Gerrit-PatchSet: 10
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
Gerrit-Reviewer: Gilles <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to