From: Anton Khorev Date: Sat, 27 Apr 2024 03:57:20 +0000 (+0300) Subject: Remove action item class from non-action query results X-Git-Tag: live~582^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/63aaf045ac868675155c76468c9286eaaa3acd83 Remove action item class from non-action query results --- diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 313bd1cc0..08da06d4c 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -230,14 +230,14 @@ OSM.Query = function (map) { if (results.remark) { $("
  • ") - .addClass("query-result list-group-item list-group-item-action") + .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 list-group-item-action") + .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 list-group-item-action") + .addClass("list-group-item") .text(I18n.t("javascripts.query." + status, { server: url, error: error })) .appendTo($ul); }