mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
no results on empty search
This commit is contained in:
@@ -16,6 +16,10 @@ $(document).ready(function()
|
|||||||
$(".search_input").keyup(function()
|
$(".search_input").keyup(function()
|
||||||
{
|
{
|
||||||
var search_input = $(this).val();
|
var search_input = $(this).val();
|
||||||
|
if(search_input.length < 3){
|
||||||
|
$("#results").html("");
|
||||||
|
}
|
||||||
|
|
||||||
if(search_input != old_input){
|
if(search_input != old_input){
|
||||||
old_input=search_input;
|
old_input=search_input;
|
||||||
$("#results").html('');
|
$("#results").html('');
|
||||||
|
|||||||
Reference in New Issue
Block a user