mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Fix reference dialog focus
Wasn't migrated to processes. Change-Id: Idb5f614c172378aad5d37bf8f726adad338c3eb1
This commit is contained in:
parent
365453f2b3
commit
9bc8d07486
|
@ -21,9 +21,6 @@ ve.ui.MWReferenceDialog = function VeUiMWReferenceDialog( manager, config ) {
|
|||
|
||||
// Properties
|
||||
this.referenceModel = null;
|
||||
|
||||
// Events
|
||||
this.connect( this, { 'ready': 'onReady' } );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
@ -206,11 +203,13 @@ ve.ui.MWReferenceDialog.prototype.onSearchSelect = function ( ref ) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Handle window ready events
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWReferenceDialog.prototype.onReady = function () {
|
||||
// Focus the reference surface
|
||||
this.referenceSurface.focus();
|
||||
ve.ui.MWReferenceDialog.prototype.getReadyProcess = function ( data ) {
|
||||
return ve.ui.MWReferenceDialog.super.prototype.getReadyProcess.call( this, data )
|
||||
.next( function () {
|
||||
this.referenceSurface.focus();
|
||||
}, this );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue