You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.html.erb 537B

123456789101112131415161718
  1. <h2><%= import_title %></h2>
  2. <div id="import-details">
  3. <div id="import-progress"><div id="progress-label">0 / <%= @import.total_items.to_i %></div></div>
  4. </div>
  5. <%= render_if_exist :partial => "#{import_partial_prefix}_sidebar" %>
  6. <%= javascript_tag do %>
  7. $(document).ready(function() {
  8. $('#import-details').addClass('ajax-loading');
  9. $('#import-progress').progressbar({value: 0, max: <%= @import.total_items.to_i %>});
  10. $.ajax({
  11. url: '<%= import_run_path(@import, :format => 'js') %>',
  12. type: 'post'
  13. });
  14. });
  15. <% end %>