From: Tom Hughes Date: Sun, 30 Oct 2022 18:35:36 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/3776' X-Git-Tag: live~1522 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8b9d0ff56041d8eea953c228ea0242390f2d6471?hp=a3acf9abc18b53f219f2059a0f32d2d43f4fb731 Merge remote-tracking branch 'upstream/pull/3776' --- diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index d1668f247..c81d035fb 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -168,10 +168,6 @@ OSM.Query = function (map) { $ul.empty(); $section.show(); - $section.find(".loader").oneTime(1000, "loading", function () { - $(this).show(); - }); - if ($section.data("ajax")) { $section.data("ajax").abort(); } @@ -188,7 +184,7 @@ OSM.Query = function (map) { success: function (results) { var elements; - $section.find(".loader").stopTime("loading").hide(); + $section.find(".loader").hide(); if (merge) { elements = results.elements.reduce(function (hash, element) { @@ -243,7 +239,7 @@ OSM.Query = function (map) { } }, error: function (xhr, status, error) { - $section.find(".loader").stopTime("loading").hide(); + $section.find(".loader").hide(); $("
  • ") .addClass("query-result list-group-item")