Fix reference dialog focus

Wasn't migrated to processes.

Change-Id: Idb5f614c172378aad5d37bf8f726adad338c3eb1
This commit is contained in:
Ed Sanders 2014-07-21 13:58:48 +01:00
parent 365453f2b3
commit 9bc8d07486

View file

@ -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 );
};
/**