Focus the bookletLayout on ready in the template dialog

Depends on I60377cb5 in oojs-ui

Change-Id: I5d8b73f878bf136efdc97493ef1f6e7bd6f56066
This commit is contained in:
Roan Kattouw 2014-11-21 18:13:27 -08:00
parent 4cf254a31b
commit 0bc3edfd91

View file

@ -489,6 +489,16 @@ ve.ui.MWTemplateDialog.prototype.initializeNewTemplateParameters = function () {
*/
ve.ui.MWTemplateDialog.prototype.initializeTemplateParameters = function () {};
/**
* @inheritdoc
*/
ve.ui.MWTemplateDialog.prototype.getReadyProcess = function ( data ) {
return ve.ui.MWTemplateDialog.super.prototype.getReadyProcess.call( this, data )
.next( function () {
this.bookletLayout.focus();
}, this );
};
/**
* @inheritdoc
*/