From 0e57493db7eab966bddc54a5dd713c4c8aac1495 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 13 Apr 2025 15:31:26 +0300 Subject: [PATCH] Change 'search more' spinner hiding css to hidden attribute --- app/assets/javascripts/index/search.js | 2 +- app/assets/stylesheets/common.scss | 8 -------- app/views/geocoder/results.html.erb | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) 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" %> -
+