mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-14 18:15:19 +00:00
Fixes incorrect transition from searched image preview to upload panel
This line was introduced by If59979f. This action is only invoked from the 'safe' action when the dialog mode is 'info' - uploads are under 'upload-info' instead - so I believe we shouldn't end up here from an upload and whatever condition this was guarding against is no longer a concern. Bug: T362015 Change-Id: I6a6551eab3fb698a6ae781be4623b48e4b4c7edb
This commit is contained in:
parent
70c2179025
commit
220088e13e
|
@ -1394,10 +1394,6 @@ ve.ui.MWMediaDialog.prototype.getActionProcess = function ( action ) {
|
|||
case 'cancelchoose':
|
||||
handler = function () {
|
||||
this.switchPanels( 'search' );
|
||||
if ( this.mediaUploadBooklet ) {
|
||||
// Reset upload booklet, in case we got here by uploading a file
|
||||
return this.mediaUploadBooklet.initialize();
|
||||
}
|
||||
};
|
||||
ve.track( 'activity.' + this.constructor.static.name, {
|
||||
action: 'search-change-image'
|
||||
|
|
Loading…
Reference in a new issue