mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
No scroll on search
This commit is contained in:
@@ -1053,6 +1053,7 @@ $(document).keyup(function(event) {
|
|||||||
$("#results").empty();
|
$("#results").empty();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$("body").attr("style", "overflow-y:auto")
|
||||||
$("#search-btn i").html("search");
|
$("#search-btn i").html("search");
|
||||||
$(".search_input").val("");
|
$(".search_input").val("");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ var Search = {
|
|||||||
$("#song-title").toggleClass("hide");
|
$("#song-title").toggleClass("hide");
|
||||||
//$("#results").empty();
|
//$("#results").empty();
|
||||||
if($("#search-btn i").html() == "close") {
|
if($("#search-btn i").html() == "close") {
|
||||||
|
$("body").attr("style", "overflow-y:auto")
|
||||||
$("#results").slideUp({
|
$("#results").slideUp({
|
||||||
complete: function() {
|
complete: function() {
|
||||||
$("#results").empty();
|
$("#results").empty();
|
||||||
@@ -121,6 +122,7 @@ var Search = {
|
|||||||
}
|
}
|
||||||
$(".search_results").empty();
|
$(".search_results").empty();
|
||||||
if(output.length > 0) {
|
if(output.length > 0) {
|
||||||
|
//$(window).scrollTop(0);
|
||||||
if(!pagination && fresh) {
|
if(!pagination && fresh) {
|
||||||
$(".search_results").css("display", "none");
|
$(".search_results").css("display", "none");
|
||||||
}
|
}
|
||||||
@@ -129,7 +131,7 @@ var Search = {
|
|||||||
if(!pagination && fresh) {
|
if(!pagination && fresh) {
|
||||||
$(".search_results").slideDown();
|
$(".search_results").slideDown();
|
||||||
}
|
}
|
||||||
|
$("body").attr("style", "overflow-y:hidden !important")
|
||||||
|
|
||||||
if(nextPageToken) {
|
if(nextPageToken) {
|
||||||
$(".next-results-button").attr("data-pagination", nextPageToken);
|
$(".next-results-button").attr("data-pagination", nextPageToken);
|
||||||
@@ -289,6 +291,7 @@ var Search = {
|
|||||||
$("#results").html('');
|
$("#results").html('');
|
||||||
Search.showSearch();
|
Search.showSearch();
|
||||||
document.getElementById("search").value = "";
|
document.getElementById("search").value = "";
|
||||||
|
$("body").attr("style", "overflow-y:auto")
|
||||||
$("#results").html = "";
|
$("#results").html = "";
|
||||||
$(".main").removeClass("blurT");
|
$(".main").removeClass("blurT");
|
||||||
$("#controls").removeClass("blurT");
|
$("#controls").removeClass("blurT");
|
||||||
|
|||||||
Reference in New Issue
Block a user