Catrope has uploaded a new change for review. https://gerrit.wikimedia.org/r/193494
Change subject: Prevent form submission in FragmentInspector ...................................................................... Prevent form submission in FragmentInspector This was previously prevented by FormLayout itself, but Ie84826c7 in oojs-ui broke that. Change-Id: Id7417f75685ac0dd1a6f81ad7f97727b27f650c3 --- M src/ui/inspectors/ve.ui.FragmentInspector.js 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/94/193494/1 diff --git a/src/ui/inspectors/ve.ui.FragmentInspector.js b/src/ui/inspectors/ve.ui.FragmentInspector.js index c76a717..225747c 100644 --- a/src/ui/inspectors/ve.ui.FragmentInspector.js +++ b/src/ui/inspectors/ve.ui.FragmentInspector.js @@ -42,8 +42,9 @@ * * @method */ -ve.ui.FragmentInspector.prototype.onFormSubmit = function () { +ve.ui.FragmentInspector.prototype.onFormSubmit = function ( e ) { this.close( { action: 'done' } ); + e.preventDefault(); }; /** -- To view, visit https://gerrit.wikimedia.org/r/193494 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id7417f75685ac0dd1a6f81ad7f97727b27f650c3 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <roan.katt...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits