]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/query.js
Remove query spinner show delay because the spinner is not hidden
[rails.git] / app / assets / javascripts / index / query.js
index d1668f247351fd5d1fa5d77496eb56119d55c122..c81d035fb5763f1b1b16469bee48f50245831ae9 100644 (file)
@@ -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();
 
         $("<li>")
           .addClass("query-result list-group-item")