From 357d32c57c921f1d7ee15491601e1639be17b04d Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 29 Oct 2022 19:32:17 +0300 Subject: [PATCH] Remove query spinner show delay because the spinner is not hidden --- app/assets/javascripts/index/query.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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") -- 2.43.2