mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Add support for placeholder search for empty queries
This commit is contained in:
		
				
					committed by
					
						
						Clément Renault
					
				
			
			
				
	
			
			
			
						parent
						
							433d9bbc6e
						
					
				
				
					commit
					a00f5850ee
				
			@@ -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');
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user