Files
Redmine/app/views/imports/run.js.erb
Jean-Philippe Lang 035edd39c4 Import issues from CSV file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-14 08:20:32 +00:00

12 lines
339 B
Plaintext

$('#import-progress').progressbar({value: <%= @current.to_i %>});
$('#progress-label').text("<%= @current.to_i %> / <%= @import.total_items.to_i %>");
<% if @import.finished? %>
window.location.href='<%= import_path(@import) %>';
<% else %>
$.ajax({
url: '<%= import_run_path(@import, :format => 'js') %>',
type: 'post'
});
<% end %>