extract common DT options to template

This commit is contained in:
Oliver Gorwits
2014-09-15 22:01:41 +01:00
parent 374a668d38
commit b63cd0b643
39 changed files with 90 additions and 251 deletions

View File

@@ -13,12 +13,6 @@
<script type="text/javascript">
$(document).ready(function() {
var table = $('#data-table').dataTable({
"processing": true,
"stateSave": true,
"pageLength": [% settings.table_pagesize %],
"language": {
"search": 'Filter records: '
},
"deferRender": true,
"order": [[ 3, "desc" ]],
"data": [% results %],
@@ -45,7 +39,8 @@ $(document).ready(function() {
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
}
]
],
[% INCLUDE 'ajax/datatabledefaults.tt' -%]
});
});
</script>