Parcourir la source

Show loading on queries page when still loading

Andrew Kane il y a 9 ans
Parent
commit
43b568b97a
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      app/views/blazer/queries/home.html.erb

+ 5 - 1
app/views/blazer/queries/home.html.erb

@@ -43,7 +43,11 @@
 </script>
 
 <% if @queries.size == 1000 %>
+  <p id="loading" class="text-muted">Loading...</p>
   <script>
-    $(".list").load("<%= queries_path %>", updateList);
+    $(".list").load("<%= queries_path %>", function () {
+      updateList();
+      $("#loading").remove();
+    });
   </script>
 <% end %>