Merge "Focus the caption surface on initialization"

This commit is contained in:
jenkins-bot 2014-07-29 20:00:18 +00:00 committed by Gerrit Code Review
commit 775d52f53a

View file

@ -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();