Blank the reference and media search queries when closing dialogs

Bug: 61959
Change-Id: I45e161d322d4fb0a63d35c1a75a2a39ba9f73def
This commit is contained in:
James D. Forrester 2014-03-24 10:40:02 -07:00
parent 53d12db4e3
commit 3f21a91c2b
2 changed files with 3 additions and 0 deletions

View file

@ -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 );
};

View file

@ -407,6 +407,7 @@ ve.ui.MWReferenceDialog.prototype.teardown = function ( data ) {
}
}
this.search.clear();
this.referenceSurface.destroy();
this.referenceSurface = null;
this.ref = null;