From 3e2d594148a3dce5b1da4b31ac734b3e3268db3d Mon Sep 17 00:00:00 2001 From: Adam Wight Date: Mon, 4 Jul 2022 10:40:02 +0200 Subject: [PATCH] Minor doc updates Change-Id: I87156e203c131545c463bfa2307b2d8f7c5507ca --- modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js | 1 + .../ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js index d5cce6f911..a1b5f1bc71 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js @@ -182,6 +182,7 @@ ve.ui.MWTemplateDialog.prototype.onAddParameter = function ( param ) { hasValueChange: 'onHasValueChange' } ); } else { + // Create parameter placeholder. page = new ve.ui.MWAddParameterPage( param, param.getId(), { $overlay: this.$overlay } ) diff --git a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js index 2f0bdf4405..b40c74aa8e 100644 --- a/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js +++ b/modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js @@ -147,7 +147,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.onStackLayoutSet = function ( }; /** - * Focus the first input in the current page. + * Focus the input field for the current page. * * If no page is selected, the first selectable page will be selected. * If the focus is already in an element on the current page, nothing will happen. @@ -343,7 +343,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.clearPages = function () { }; /** - * Set the current page by symbolic name. + * Set the current page by symbolic name. Doesn't focus the input. * * @param {string} name Symbolic name of page */