mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Focus the bookletLayout on ready in the template dialog"
This commit is contained in:
commit
b69fef2196
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue