mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "ve.ui.MWMediaDialog: Open to the "Upload" tab when dropping/pasting file"
This commit is contained in:
commit
c1871d0216
|
@ -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