Merge "ve.ui.MWMediaDialog: Open to the "Upload" tab when dropping/pasting file"

This commit is contained in:
jenkins-bot 2018-11-01 11:48:46 +00:00 committed by Gerrit Code Review
commit c1871d0216

View file

@ -1315,7 +1315,9 @@ ve.ui.MWMediaDialog.prototype.resetCaption = function () {
ve.ui.MWMediaDialog.prototype.getReadyProcess = function ( data ) {
return ve.ui.MWMediaDialog.super.prototype.getReadyProcess.call( this, data )
.next( function () {
this.switchPanels( this.selectedNode ? 'edit' : 'search' );
if ( !data.file ) {
this.switchPanels( this.selectedNode ? 'edit' : 'search' );
}
// Revalidate size
this.sizeWidget.validateDimensions();
}, this );