jenkins-bot has submitted this change and it was merged. Change subject: Apply 'original size' to images ......................................................................
Apply 'original size' to images Trigger the proper event by using 'chooseItem' instead of 'selectItem' in the MediaSizeWidget when changing size type. Bug: 66863 Change-Id: I243cff5a2d56db48882c343a8bb91153edd96a43 --- M modules/ve/ui/widgets/ve.ui.MediaSizeWidget.js 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Trevor Parscal: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ve/ui/widgets/ve.ui.MediaSizeWidget.js b/modules/ve/ui/widgets/ve.ui.MediaSizeWidget.js index 04a3e05..d856c4a 100644 --- a/modules/ve/ui/widgets/ve.ui.MediaSizeWidget.js +++ b/modules/ve/ui/widgets/ve.ui.MediaSizeWidget.js @@ -335,7 +335,7 @@ * Set the width/height values to the original media dimensions */ ve.ui.MediaSizeWidget.prototype.onFullSizeButtonClick = function () { - this.sizeTypeSelectWidget.selectItem( + this.sizeTypeSelectWidget.chooseItem( this.sizeTypeSelectWidget.getItemFromData( 'custom' ) ); this.setCurrentDimensions( this.scalable.getOriginalDimensions() ); -- To view, visit https://gerrit.wikimedia.org/r/144637 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I243cff5a2d56db48882c343a8bb91153edd96a43 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Mooeypoo <mor...@gmail.com> Gerrit-Reviewer: Trevor Parscal <tpars...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits