Focus the math dialog input after the symbols promise has returned

Bug: T119778
Change-Id: Ia5afe667241543addbda95d4d284b8af63f693a1
This commit is contained in:
Thalia 2015-12-07 18:41:10 +00:00 committed by Ed Sanders
parent 76cd36c4a0
commit 4087a1cec0
1 changed files with 3 additions and 1 deletions

View File

@ -225,8 +225,10 @@ ve.ui.MWMathDialog.prototype.getSetupProcess = function ( data ) {
ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) {
return ve.ui.MWMathDialog.super.prototype.getReadyProcess.call( this, data )
.next( function () {
this.input.focus().moveCursorToEnd();
return this.symbolsPromise;
}, this )
.next( function () {
this.input.focus().moveCursorToEnd();
}, this );
};