Use Bootstrap actionable items in search results lists

This commit is contained in:
Anton Khorev 2024-04-27 04:17:04 +03:00
parent b66881b45a
commit adabb735fc
4 changed files with 1 additions and 10 deletions

View file

@ -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) {

View file

@ -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;
}

View file

@ -12,7 +12,6 @@ $lightgrey: #EEE;
$darkgrey: #888;
$headerHeight: 55px;
$sidebarWidth: 350px;
$list-highlight: #FFFFC0;
$link-color: #24d;
$link-hover-color: #24d;

View file

@ -7,7 +7,7 @@
<% else %>
<ul class='results-list list-group list-group-flush'>
<% @results.each do |result| %>
<li class="list-group-item search_results_entry"><%= result_to_html(result) %></li>
<li class="list-group-item list-group-item-action search_results_entry"><%= result_to_html(result) %></li>
<% end %>
</ul>
<% if @more_params %>