From 08f4b7f5062ad75299797c71ec23eaa4e7bf706f Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Thu, 20 Nov 2014 15:31:00 +0100 Subject: [PATCH] [fix][template_oscar] make overpass-api call over https and add better error message if ajax-call fail --- searx/static/oscar/js/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/static/oscar/js/scripts.js b/searx/static/oscar/js/scripts.js index 92847de9..bc671e30 100644 --- a/searx/static/oscar/js/scripts.js +++ b/searx/static/oscar/js/scripts.js @@ -70,7 +70,7 @@ $(document).ready(function(){ } $(".searx_overpass_request").on( "click", function( event ) { - var overpass_url = "http://overpass-api.de/api/interpreter?data="; + var overpass_url = "https://overpass-api.de/api/interpreter?data="; var query_start = overpass_url + "[out:json][timeout:25];("; var query_end = ");out meta;"; @@ -142,7 +142,7 @@ $(document).ready(function(){ } }) .fail(function() { - alert( "could not load " ); + $(result_table_loadicon).html($(result_table_loadicon).html() + "

could not load data!

"); }) } }