From 99662985933b639c66550ecd8dc410d7b6873fa3 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Tue, 6 Jan 2015 00:51:38 +0000 Subject: [PATCH] Re-focus edit summary input when save dialog is ready I thought this was already being done elsewhere and so removed it back in Ifb8fd9be Bug: T75675 Change-Id: Ia015c96ec8332af75428f156e4ed7a25184db96b --- modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js index 8a45cd07a8..048bf73161 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js @@ -482,6 +482,16 @@ ve.ui.MWSaveDialog.prototype.getSetupProcess = function ( data ) { }, this ); }; +/** + * @inheritdoc + */ +ve.ui.MWSaveDialog.prototype.getReadyProcess = function ( data ) { + return ve.ui.MWSaveDialog.super.prototype.getReadyProcess.call( this, data ) + .next( function () { + this.editSummaryInput.focus(); + }, this ); +}; + /** * @inheritdoc */