extract common DT options to template
This commit is contained in:
@@ -12,12 +12,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,
|
||||
"data": [% results %],
|
||||
"columns": [
|
||||
@@ -44,7 +38,8 @@ $(document).ready(function() {
|
||||
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
[% INCLUDE 'ajax/datatabledefaults.tt' -%]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user