mirror of
https://github.com/searxng/searxng.git
synced 2024-11-16 17:40:11 +01:00
Merge pull request #130 from pointhi/template_oscar_fix
[fix][template_oscar] make overpass-api call over https and add better error-message
This commit is contained in:
commit
91384c1f31
@ -70,7 +70,7 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(".searx_overpass_request").on( "click", function( event ) {
|
$(".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_start = overpass_url + "[out:json][timeout:25];(";
|
||||||
var query_end = ");out meta;";
|
var query_end = ");out meta;";
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
alert( "could not load " );
|
$(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">could not load data!</p>");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user