1
0
mirror of synced 2025-02-03 21:59:24 +03:00

Hide search.parent() container when minimumResultsForSearch is not met on a single select.

This commit is contained in:
Justin DuJardin 2012-03-29 13:45:36 -07:00
parent a28ea4fb98
commit de51a5dbdd

View File

@ -772,7 +772,7 @@
// hide the search box if this is the first we got the results and there are a few of them
if (initial === true) {
this.search.toggle(data.results.length >= this.opts.minimumResultsForSearch);
this.search.parent().toggle(data.results.length >= this.opts.minimumResultsForSearch);
}
};