X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/efdaecdbf3eaaf05411fee3070fa7c1029c81fcb..63aaf045ac868675155c76468c9286eaaa3acd83:/app/assets/javascripts/index/query.js
diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js
index e44db9fdf..08da06d4c 100644
--- a/app/assets/javascripts/index/query.js
+++ b/app/assets/javascripts/index/query.js
@@ -125,7 +125,7 @@ OSM.Query = function (map) {
function featureName(feature) {
var tags = feature.tags,
- locales = I18n.locales.get();
+ locales = OSM.preferred_languages;
for (var i = 0; i < locales.length; i++) {
if (tags["name:" + locales[i]]) {
@@ -216,7 +216,7 @@ OSM.Query = function (map) {
if (interestingFeature(element)) {
var $li = $("
")
- .addClass("query-result list-group-item")
+ .addClass("query-result list-group-item list-group-item-action")
.data("geometry", featureGeometry(element))
.text(featurePrefix(element) + " ")
.appendTo($ul);
@@ -230,14 +230,14 @@ OSM.Query = function (map) {
if (results.remark) {
$("")
- .addClass("query-result list-group-item")
+ .addClass("list-group-item")
.text(I18n.t("javascripts.query.error", { server: url, error: results.remark }))
.appendTo($ul);
}
if ($ul.find("li").length === 0) {
$("")
- .addClass("query-result list-group-item")
+ .addClass("list-group-item")
.text(I18n.t("javascripts.query.nothing_found"))
.appendTo($ul);
}
@@ -246,7 +246,7 @@ OSM.Query = function (map) {
$section.find(".loader").hide();
$("")
- .addClass("query-result list-group-item")
+ .addClass("list-group-item")
.text(I18n.t("javascripts.query." + status, { server: url, error: error }))
.appendTo($ul);
}