Fixed search

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-12 16:34:56 +02:00
parent 43025452f2
commit abeafa3f1b
4 changed files with 9 additions and 1 deletions

View File

@@ -1009,6 +1009,7 @@ nav ul li:hover, nav ul li.active {
margin-top: -27px;
max-height: calc(100vh - 64px);
overflow: overlay;
overflow-x: hidden;
}
.result:hover, .hoverResults {
background-color: rgba(0,0,0,0.4);

File diff suppressed because one or more lines are too long

View File

@@ -2603,6 +2603,10 @@ var Search = {
},
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('');
if(window.search_input !== ""){
searching = true;

View File

@@ -16,6 +16,10 @@ var Search = {
},
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('');
if(window.search_input !== ""){
searching = true;