url: url,
method: "POST",
data: {
- data: "[timeout:5][out:json];" + query,
+ data: "[timeout:10][out:json];" + query,
},
success: function(results) {
var elements;
}
}
+ if (results.remark) {
+ $("<li>")
+ .text(I18n.t("javascripts.query.error", { server: url, error: results.remark }))
+ .appendTo($ul);
+ }
+
if ($ul.find("li").length === 0) {
$("<li>")
.text(I18n.t("javascripts.query.nothing_found"))