paginating für test_import
[kivitendo-erp.git] / templates / webpages / csv_import / _deferred_report.html
1 <div id='csv_import_report'></div>
2
3 <script type='text/javascript'>
4   function get_report(target, source, data){
5     $.ajax({
6       url:        source,
7       success:    function (rsp) {
8         $(target).html(rsp);
9         $(target).find('.paginate').find('a').click(function(event){ redirect_event(event, target) });
10       },
11       data:       data,
12     });
13   };
14
15   function redirect_event(event, target){
16     event.preventDefault();
17     get_report(target, event.target + '', {});
18   }
19
20   $(document).ready(function(){
21     get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] });
22   });
23
24
25 </script>
26