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

Change subject: Re-enable button after failed Flickr submission
......................................................................


Re-enable button after failed Flickr submission

Don't know where this happened or why.

Change-Id: I0d68853273a210cf0706d67f089d33d29006dd00
---
M resources/mw.UploadWizard.js
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index 7038bbc..ab6cfcd 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -193,6 +193,9 @@
                        $disclaimer = $( '<div 
id="mwe-upwiz-flickr-disclaimer"></div>' ).html( $disclaimer );
                        $( '#mwe-upwiz-upload-add-flickr-container' ).append( 
$disclaimer );
 
+                       // Save temporarily
+                       this.flickrButton = flickrButton;
+
                        // Insert input field into the form and set up submit 
action
                        $flickrForm.prepend( $flickrInput ).submit( function () 
{
                                flickrButton.setDisabled( true );
@@ -220,6 +223,7 @@
                flickrInterfaceReset: function () {
                        // first destroy it completely, then reshow the add 
button
                        this.flickrInterfaceDestroy();
+                       this.flickrButton.setDisabled( false );
                        $( '#mwe-upwiz-upload-add-flickr-container' ).show();
                        $( '#mwe-upwiz-upload-add-flickr' ).prop( 'disabled', 
false );
                },

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0d68853273a210cf0706d67f089d33d29006dd00
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to