From: Anton Khorev Date: Sat, 27 Apr 2024 01:17:04 +0000 (+0300) Subject: Use Bootstrap actionable items in search results lists X-Git-Tag: live~580^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/adabb735fcf8c457a6a14b62a36772180fc967f0?ds=sidebyside;hp=-c Use Bootstrap actionable items in search results lists --- adabb735fcf8c457a6a14b62a36772180fc967f0 diff --git a/app/assets/javascripts/index/search.js b/app/assets/javascripts/index/search.js index 1c1da3677..b23dea69a 100644 --- a/app/assets/javascripts/index/search.js +++ b/app/assets/javascripts/index/search.js @@ -94,8 +94,6 @@ OSM.Search = function (map) { } markers.addLayer(marker); - - $(this).closest("li").addClass("selected"); } function hideSearchResult() { @@ -104,8 +102,6 @@ OSM.Search = function (map) { if (marker) { markers.removeLayer(marker); } - - $(this).closest("li").removeClass("selected"); } function panToSearchResult(data) { diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c3f714389..150050615 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -549,10 +549,6 @@ header .search_forms, /* Rules for search sidebar */ #sidebar .search_results_entry { - ul li.selected { - background: $list-highlight; - } - .search_more .loader { display: none; } diff --git a/app/assets/stylesheets/parameters.scss b/app/assets/stylesheets/parameters.scss index c46174d78..cc1d55ecc 100644 --- a/app/assets/stylesheets/parameters.scss +++ b/app/assets/stylesheets/parameters.scss @@ -12,7 +12,6 @@ $lightgrey: #EEE; $darkgrey: #888; $headerHeight: 55px; $sidebarWidth: 350px; -$list-highlight: #FFFFC0; $link-color: #24d; $link-hover-color: #24d; diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index fc2138318..05d7d5d63 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -7,7 +7,7 @@ <% else %> <% if @more_params %>