From 0bd034a8e95749a84d19b39ed1c9a461f803988b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 17 Apr 2024 04:09:04 +0300 Subject: [PATCH] Use Bootstrap actionable items in query results --- app/assets/javascripts/index/query.js | 8 ++++---- app/assets/stylesheets/common.scss | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 59c3a8b49..313bd1cc0 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -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("query-result list-group-item list-group-item-action") .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("query-result list-group-item list-group-item-action") .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("query-result list-group-item list-group-item-action") .text(I18n.t("javascripts.query." + status, { server: url, error: error })) .appendTo($ul); } diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index cf616983e..d3399420b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -640,10 +640,6 @@ tr.turn { &.query-result { cursor: pointer; } - - &.selected { - background: $list-highlight; - } } } } -- 2.45.1