mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
ve.ui.MWMediaDialog: Open to the "Upload" tab when dropping/pasting file
Bug: T208286 Change-Id: I1f203b3a9b9401de22420e21f5553c78321cdbf8
This commit is contained in:
parent
a0e73a1a80
commit
af1a898380
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue