mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Not hiding result-containers on short input anymore
This commit is contained in:
@@ -914,12 +914,15 @@ function searchTimeout(event) {
|
||||
|
||||
if (code != 40 && code != 38 && code != 13 && code != 39 && code != 37 && code != 17 && code != 16 && code != 225 && code != 18 && code != 27) {
|
||||
clearTimeout(timeout_search);
|
||||
if(search_input.length < 3){
|
||||
/*if(search_input.length < 3){
|
||||
Helper.css(".results-tabs", "display", "none");
|
||||
document.querySelector("#results").innerHTML = "";
|
||||
document.querySelector("#results_soundcloud").innerHTML = "";
|
||||
Helper.css("")
|
||||
if(search_input.length == 0) {
|
||||
document.querySelector("body").setAttribute("style", "overflow-y: auto");
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if(code == 13){
|
||||
Search.search(search_input);
|
||||
Search.soundcloudSearch(search_input);
|
||||
|
||||
@@ -34,7 +34,6 @@ var Search = {
|
||||
},
|
||||
|
||||
search: function(search_input, retried, related, pagination){
|
||||
|
||||
if(result_html === undefined || empty_results_html === undefined) {
|
||||
result_html = document.getElementById("temp-results-container");
|
||||
empty_results_html = Helper.html("#empty-results-container");
|
||||
@@ -186,6 +185,7 @@ var Search = {
|
||||
Helper.removeClass(".main", "blurT");
|
||||
Helper.removeClass("#controls", "blurT");
|
||||
Helper.removeClass(".main", "clickthrough");
|
||||
Helper.css(".results-tabs", "display", "none");
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user