Mooeypoo has uploaded a new change for review. https://gerrit.wikimedia.org/r/144637
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(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/37/144637/1 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: newchange Gerrit-Change-Id: I243cff5a2d56db48882c343a8bb91153edd96a43 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Mooeypoo <mor...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits