mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Focus the caption surface on initialization"
This commit is contained in:
commit
775d52f53a
|
@ -645,6 +645,8 @@ ve.ui.MWMediaDialog.prototype.switchPanels = function ( panel ) {
|
|||
this.actions.setMode( this.selectedNode ? 'edit' : 'insert' );
|
||||
// HACK: OO.ui.Dialog needs an API for this
|
||||
this.frame.$content.removeClass( 'oo-ui-dialog-content-footless' );
|
||||
// Focus the caption surface
|
||||
this.captionSurface.focus();
|
||||
// Hide/show the panels
|
||||
this.bookletLayout.$element.show();
|
||||
this.mediaSearchPanel.$element.hide();
|
||||
|
|
Loading…
Reference in a new issue