Ver Fonte

Show loading on queries page when still loading

Andrew Kane há 9 anos atrás
pai
commit
43b568b97a
1 ficheiros alterados com 5 adições e 1 exclusões
  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 %>