mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Hide "no results" messaage in media search widget
After resolving the search queries to the API, make sure to display or hide (!) the "no results" message. Bug: 67438 Change-Id: I518fbf5ae18bb2265710600516d556c60e2b4924
This commit is contained in:
parent
4be972799f
commit
ae4511a02b
|
@ -179,6 +179,8 @@ ve.ui.MWMediaSearchWidget.prototype.onAllMediaQueriesDone = function ( source )
|
|||
|
||||
if ( this.results.getItems().length === 0 ) {
|
||||
this.$noItemsMessage.show();
|
||||
} else {
|
||||
this.$noItemsMessage.hide();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue