mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 05:21:01 +00:00
Fixed search
This commit is contained in:
@@ -1009,6 +1009,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
margin-top: -27px;
|
margin-top: -27px;
|
||||||
max-height: calc(100vh - 64px);
|
max-height: calc(100vh - 64px);
|
||||||
overflow: overlay;
|
overflow: overlay;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
.result:hover, .hoverResults {
|
.result:hover, .hoverResults {
|
||||||
background-color: rgba(0,0,0,0.4);
|
background-color: rgba(0,0,0,0.4);
|
||||||
|
|||||||
1
static/dist/frontpage.min.js
vendored
1
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
@@ -2603,6 +2603,10 @@ var Search = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
search: function(search_input){
|
search: function(search_input){
|
||||||
|
if(result_html == undefined || empty_results_html == undefined) {
|
||||||
|
result_html = $("#temp-results-container");
|
||||||
|
empty_results_html = $("#empty-results-container").html();
|
||||||
|
}
|
||||||
$(".search_results").html('');
|
$(".search_results").html('');
|
||||||
if(window.search_input !== ""){
|
if(window.search_input !== ""){
|
||||||
searching = true;
|
searching = true;
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ var Search = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
search: function(search_input){
|
search: function(search_input){
|
||||||
|
if(result_html == undefined || empty_results_html == undefined) {
|
||||||
|
result_html = $("#temp-results-container");
|
||||||
|
empty_results_html = $("#empty-results-container").html();
|
||||||
|
}
|
||||||
$(".search_results").html('');
|
$(".search_results").html('');
|
||||||
if(window.search_input !== ""){
|
if(window.search_input !== ""){
|
||||||
searching = true;
|
searching = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user