From f2bbd5231ba2997a51696fb6384aa7c586c1720a Mon Sep 17 00:00:00 2001 From: Thalia Date: Tue, 6 Feb 2018 20:58:27 +0000 Subject: [PATCH] Focus references list dialog group input Bug: T186640 Change-Id: I0c3bea3885c05ba2034cbe26626277640e7b5509 --- modules/ve-cite/ve.ui.MWReferencesListDialog.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ve-cite/ve.ui.MWReferencesListDialog.js b/modules/ve-cite/ve.ui.MWReferencesListDialog.js index d473fa77e..551626065 100644 --- a/modules/ve-cite/ve.ui.MWReferencesListDialog.js +++ b/modules/ve-cite/ve.ui.MWReferencesListDialog.js @@ -163,6 +163,16 @@ ve.ui.MWReferencesListDialog.prototype.getSetupProcess = function ( data ) { }, this ); }; +/** + * @inheritdoc + */ +ve.ui.MWReferencesListDialog.prototype.getReadyProcess = function ( data ) { + return ve.ui.MWReferencesListDialog.super.prototype.getReadyProcess.call( this, data ) + .next( function () { + this.groupInput.focus(); + }, this ); +}; + /* Registration */ ve.ui.windowFactory.register( ve.ui.MWReferencesListDialog );