2015-09-08 17:30:13 +02:00
|
|
|
%table#transactions.display{data: { source: transactions_path }}
|
2015-09-08 16:19:48 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th id
|
|
|
|
%th debtor
|
|
|
|
%th creditor
|
|
|
|
%th amount
|
|
|
|
%tbody
|
2015-09-08 17:30:13 +02:00
|
|
|
|
2015-09-08 16:19:48 +02:00
|
|
|
:javascript
|
|
|
|
$(document).ready(function() {
|
2015-09-08 17:30:13 +02:00
|
|
|
$('#transactions').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
ajaxSource: $('#transactions').data('source'),
|
|
|
|
pagingType: 'full_numbers'
|
|
|
|
});
|
2015-09-08 16:19:48 +02:00
|
|
|
});
|