Update JSDocs related to the reference re-use dialog

Bug: T375053
Change-Id: I69a5caa8de730328ce4b5e2f92d9e04dcc576b6d
This commit is contained in:
thiemowmde 2024-10-04 11:07:58 +02:00
parent 990ea23797
commit 9ceabba9fe
2 changed files with 7 additions and 4 deletions

View file

@ -12,9 +12,12 @@
*
* @constructor
* @extends OO.ui.OptionWidget
* @param {Object} config Configuration options
* @param {Object} config.item Result item
* @param {Object} config.reuseMenu
* @param {Object} config
* @param {Object} config.item An item from the search index in ve.ui.MWReferenceSearchWidget
* @param {ve.dm.MWReferenceModel} config.item.reference
* @param {string} config.item.name
* @param {string} config.item.footnoteLabel e.g. "note 1"
* @param {OO.ui.Element} [config.reuseMenu]
*/
ve.ui.MWReferenceResultWidget = function VeUiMWReferenceResultWidget( config ) {
config = ve.extendObject( {

View file

@ -207,8 +207,8 @@ ve.ui.MWReferenceSearchWidget.prototype.isIndexEmpty = function () {
/**
* @private
* @return {OO.ui.Toolbar}
* @param {ve.dm.MWReferenceModel} ref
* @return {OO.ui.ButtonMenuSelectWidget}
*/
ve.ui.MWReferenceSearchWidget.prototype.buildReuseOptionsMenu = function ( ref ) {
// TODO: Select the row on menu button click, so we don't have to wire ref