From: Anton Khorev Date: Sun, 13 Apr 2025 12:31:26 +0000 (+0300) Subject: Change 'search more' spinner hiding css to hidden attribute X-Git-Tag: live~36^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0e57493db7eab966bddc54a5dd713c4c8aac1495?ds=inline;hp=--cc Change 'search more' spinner hiding css to hidden attribute --- 0e57493db7eab966bddc54a5dd713c4c8aac1495 diff --git a/app/assets/javascripts/index/search.js b/app/assets/javascripts/index/search.js index 84f0d3ab4..712f62fd5 100644 --- a/app/assets/javascripts/index/search.js +++ b/app/assets/javascripts/index/search.js @@ -54,7 +54,7 @@ OSM.Search = function (map) { const div = $(this).parents(".search_more"); $(this).hide(); - div.find(".loader").show(); + div.find(".loader").prop("hidden", false); fetch($(this).attr("href"), { method: "POST", diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 9fff025d0..88a8047de 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -580,14 +580,6 @@ header .search_forms, } } -/* Rules for search sidebar */ - -#sidebar .search_results_entry { - .search_more .loader { - display: none; - } -} - /* Rules for routing */ td.distance { diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index 05d7d5d63..35fcea528 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -13,7 +13,7 @@ <% if @more_params %>
<%= link_to t(".more_results"), url_for(@more_params), :class => "btn btn-primary" %> -
+