Fixed error where there is not search results

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-20 11:59:05 +02:00
parent 582ef9a6cb
commit 6e18b4b3d3
4 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7,8 +7,6 @@ var blink_interval_exists = false;
var unseen = false;
//var timer = 0;
var api_key = "***REMOVED***";
var result_html = $("#temp-results-container");
var empty_results_html = $("#empty-results-container").html();
var searching = false
var time_regex = /P((([0-9]*\.?[0-9]*)Y)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)W)?(([0-9]*\.?[0-9]*)D)?)?(T(([0-9]*\.?[0-9]*)H)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)S)?)?/
var conf = [];
@@ -30,6 +28,8 @@ var autoplay = true;
var durationBegun = false;
var chat_active = false;
var result_html;
var empty_results_html;
var mobile_beginning;
var timeout_search;
var id;
@@ -95,6 +95,8 @@ function init(){
$('.collapsible').collapsible({
accordion : true // A setting that changes the collapsible behavior to expandable instead of the default accordion style
});
result_html = $("#temp-results-container");
empty_results_html = $("#empty-results-container").html();
//awdwad
$(".video-container").resizable({

View File

@@ -16,6 +16,8 @@ var Search = {
},
search: function(search_input){
console.log(result_html);
console.log(empty_results_html);
if(result_html == undefined || empty_results_html == undefined) {
result_html = $("#temp-results-container");
empty_results_html = $("#empty-results-container").html();