From 397d30c4e9e607f380f293801041c48261ca53ca Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Jan 2020 16:59:49 +0100 Subject: [PATCH] Add query-result classes for errors and nothing_found messages --- app/assets/javascripts/index/query.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 514d6dbb2..7d02760ce 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -228,12 +228,14 @@ OSM.Query = function (map) { if (results.remark) { $("
  • ") + .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) { $("
  • ") + .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(); $("
  • ") + .addClass("query-result list-group-item") .text(I18n.t("javascripts.query." + status, { server: url, error: error })) .appendTo($ul); } -- 2.39.5