1 [% PROCESS 'common/flash.html' %]
2 <div id='csv_import_report'></div>
4 <script type='text/javascript'>
5 function get_report(target, source, data){
8 success: function (rsp) {
10 $(target).find('.paginate').find('a').click(function(event){ redirect_event(event, target) });
16 function redirect_event(event, target){
17 event.preventDefault();
18 get_report(target, event.target + '', {});
21 $(document).ready(function(){
22 [%- IF SELF.background_job.data_as_hash.report_id %]
23 get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] });