mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue where overflow is hidden on empty search
This commit is contained in:
@@ -1533,7 +1533,12 @@ function searchTimeout(event) {
|
|||||||
|
|
||||||
if (code != 40 && code != 38 && code != 13 && code != 39 && code != 37 && code != 17 && code != 16 && code != 225 && code != 18 && code != 27) {
|
if (code != 40 && code != 38 && code != 13 && code != 39 && code != 37 && code != 17 && code != 16 && code != 225 && code != 18 && code != 27) {
|
||||||
clearTimeout(timeout_search);
|
clearTimeout(timeout_search);
|
||||||
if(search_input.length < 3){$("#results").html("");}
|
if(search_input.length < 3){
|
||||||
|
$("#results").html("");
|
||||||
|
if(search_input.length == 0) {
|
||||||
|
$("body").attr("style", "overflow-y: auto");
|
||||||
|
}
|
||||||
|
}
|
||||||
if(code == 13){
|
if(code == 13){
|
||||||
Search.search(search_input);
|
Search.search(search_input);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user