mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Blank the reference and media search queries when closing dialogs
Bug: 61959 Change-Id: I45e161d322d4fb0a63d35c1a75a2a39ba9f73def
This commit is contained in:
parent
53d12db4e3
commit
3f21a91c2b
|
@ -195,6 +195,8 @@ ve.ui.MWMediaInsertDialog.prototype.teardown = function ( data ) {
|
|||
] ).collapseRangeToEnd().select();
|
||||
}
|
||||
|
||||
this.search.clear();
|
||||
|
||||
// Parent method
|
||||
ve.ui.MWDialog.prototype.teardown.call( this, data );
|
||||
};
|
||||
|
|
|
@ -407,6 +407,7 @@ ve.ui.MWReferenceDialog.prototype.teardown = function ( data ) {
|
|||
}
|
||||
}
|
||||
|
||||
this.search.clear();
|
||||
this.referenceSurface.destroy();
|
||||
this.referenceSurface = null;
|
||||
this.ref = null;
|
||||
|
|
Loading…
Reference in a new issue