run.html.erb 307 B

123456789
  1. <p style="text-muted">Running check...</p>
  2. <script>
  3. $.post("<%= run_queries_path %>", <%= json_escape({statement: @query.statement, query_id: @query.id}.to_json).html_safe %>, function (data) {
  4. setTimeout( function () {
  5. window.location.href = "<%= checks_path %>";
  6. }, 200);
  7. });
  8. </script>