mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Add support for placeholder search for empty queries
This commit is contained in:
parent
433d9bbc6e
commit
a00f5850ee
4 changed files with 33 additions and 17 deletions
|
@ -74,3 +74,9 @@ $('#docs-count').text(function(index, text) {
|
|||
$('#db-size').text(function(index, text) {
|
||||
return filesize(parseInt(text))
|
||||
});
|
||||
|
||||
// We trigger the input when we load the script, this way
|
||||
// we execute a placeholder search when the input is empty.
|
||||
$(window).on('load', function () {
|
||||
$('#search').trigger('input');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue