diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-11-20 15:49:31 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-11-20 15:49:31 +0100 |
commit | 91384c1f31667d249880c679a6197af956ead618 (patch) | |
tree | 72fb5a5a636ebbcfac4c2e9d475f0331f03b8bbc /searx | |
parent | a5fc08c3692e4b86e08a8d7fb2cfafb18500882b (diff) | |
parent | 08f4b7f5062ad75299797c71ec23eaa4e7bf706f (diff) | |
download | searxng-91384c1f31667d249880c679a6197af956ead618.tar.gz searxng-91384c1f31667d249880c679a6197af956ead618.zip |
Merge pull request #130 from pointhi/template_oscar_fix
[fix][template_oscar] make overpass-api call over https and add better error-message
Diffstat (limited to 'searx')
-rw-r--r-- | searx/static/oscar/js/scripts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/static/oscar/js/scripts.js b/searx/static/oscar/js/scripts.js index 92847de96..bc671e309 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() + "<p class=\"text-muted\">could not load data!</p>");
})
}
}
|