issue_31511.diff

Xavier Calland, 2019-06-04 10:42

Download (1.27 KB)

View differences:

app/views/timelog/report.html.erb
88 88
$(document).ready(function(){
89 89
  $('input#csv-export-button').click(function(){
90 90
    $('form input#encoding').val($('select#encoding option:selected').val());
91
    $('form#query_form').attr('action', '<%= report_time_entries_path(:format => 'csv') %>').submit();
92
    $('form#query_form').attr('action', '<%= report_time_entries_path %>');
91
    $('form#query_form').attr('action', '<%= _report_time_entries_path(@project, nil, :format => 'csv') %>').submit();
92
    $('form#query_form').attr('action', '<%= _report_time_entries_path(@project, nil) %>');
93 93
    hideModal(this);
94 94
  });
95 95
});
96
-