Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89173
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/73/89173/1
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: newchange
Gerrit-Change-Id: Ief808f1cf9ae7cce236a6f972039d9bc54fb1dac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits