Project

General

Profile

Defect #42966 » 0005-Replace-loading-icon-with-SVG-during-CSV-import.patch

Mizuki ISHIKAWA, 2025-07-07 06:58

View differences:

app/views/imports/run.html.erb
1 1
<h2><%= import_title %></h2>
2 2

  
3 3
<div id="import-details">
4
  <%= sprite_icon 'loader', icon_only: true, css_class: 'svg-loader' %>
4 5
  <div id="import-progress"><div id="progress-label">0 / <%= @import.total_items.to_i %></div></div>
5 6
</div>
6 7

  
......
8 9
$(document).ready(function() {
9 10
  $('#import-details').addClass('ajax-loading');
10 11
  $('#import-progress').progressbar({value: 0, max: <%= @import.total_items.to_i %>});
11
  $.ajax({
12
    url: '<%= import_run_path(@import, :format => 'js') %>',
13
    type: 'post'
14
  });
15 12
});
16 13
<% end %>
(7-7/7)