mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Focus the add template input in the template dialog"
This commit is contained in:
commit
e49a75a6cf
|
@ -484,17 +484,16 @@ ve.ui.MWTemplateDialog.prototype.initializeNewTemplateParameters = function () {
|
|||
*/
|
||||
ve.ui.MWTemplateDialog.prototype.initializeTemplateParameters = function () {};
|
||||
|
||||
// TODO: Uncomment this when OOjs UI is updated so that .focus() on an empty
|
||||
// booklet doesn't crash.
|
||||
/*
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWTemplateDialog.prototype.getReadyProcess = function ( data ) {
|
||||
var dialog = this;
|
||||
return ve.ui.MWTemplateDialog.super.prototype.getReadyProcess.call( this, data );
|
||||
return ve.ui.MWTemplateDialog.super.prototype.getReadyProcess.call( this, data )
|
||||
.next( function () {
|
||||
dialog.bookletLayout.focus();
|
||||
} );
|
||||
};
|
||||
*/
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
|
|
Loading…
Reference in a new issue