Standardize option for DataTables

This commit is contained in:
Eric A. Miller
2014-06-19 21:33:51 -04:00
parent 22a446f144
commit e1250011cf
25 changed files with 124 additions and 32 deletions

View File

@@ -30,12 +30,15 @@
<script type="text/javascript">
$(document).ready(function() {
var table = $('#data-table').dataTable({
[% IF opt %]
"processing": true,
"serverSide": true,
"searching": false,
"stateSave": true,
"pageLength": 25,
"language": {
"search": 'Filter records: '
},
[% IF opt %]
"serverSide": true,
"searching": false,
"order": [[ 0, "desc" ]],
"ajax": '/ajax/content/report/moduleinventory/data?[% url(params('query').hash) %]',
"columns": [