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

Change subject: Fix scope error in mw.UploadWizardUploadInterface.js
......................................................................


Fix scope error in mw.UploadWizardUploadInterface.js

this is window in the setTimeout

Change-Id: Ief808f1cf9ae7cce236a6f972039d9bc54fb1dac
---
M resources/mw.UploadWizardUploadInterface.js
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/resources/mw.UploadWizardUploadInterface.js 
b/resources/mw.UploadWizardUploadInterface.js
index 174c8ce..98b73c7 100644
--- a/resources/mw.UploadWizardUploadInterface.js
+++ b/resources/mw.UploadWizardUploadInterface.js
@@ -416,7 +416,7 @@
                                                        canvas.height = 
Math.round( canvas.width * video.videoHeight / video.videoWidth );
                                                        context = 
canvas.getContext( '2d' );
                                                        context.drawImage( 
video, 0, 0, canvas.width, canvas.height );
-                                                       this.loadImage( 
canvas.toDataURL() );
+                                                       ui.loadImage( 
canvas.toDataURL() );
                                                        
ui.URL().revokeObjectURL( video.url );
                                                }, 500);
                                        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ief808f1cf9ae7cce236a6f972039d9bc54fb1dac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to