Add query-result classes for errors and nothing_found messages
This commit is contained in:
parent
379bf785be
commit
397d30c4e9
1 changed files with 3 additions and 0 deletions
|
@ -228,12 +228,14 @@ OSM.Query = function (map) {
|
|||
|
||||
if (results.remark) {
|
||||
$("<li>")
|
||||
.addClass("query-result list-group-item")
|
||||
.text(I18n.t("javascripts.query.error", { server: url, error: results.remark }))
|
||||
.appendTo($ul);
|
||||
}
|
||||
|
||||
if ($ul.find("li").length === 0) {
|
||||
$("<li>")
|
||||
.addClass("query-result list-group-item")
|
||||
.text(I18n.t("javascripts.query.nothing_found"))
|
||||
.appendTo($ul);
|
||||
}
|
||||
|
@ -242,6 +244,7 @@ OSM.Query = function (map) {
|
|||
$section.find(".loader").stopTime("loading").hide();
|
||||
|
||||
$("<li>")
|
||||
.addClass("query-result list-group-item")
|
||||
.text(I18n.t("javascripts.query." + status, { server: url, error: error }))
|
||||
.appendTo($ul);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue