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

@@ -174,15 +174,16 @@ tr.group:hover {
<script>
$(document).ready(function() {
var table = $('#nsbi-data-table').DataTable({
"columnDefs": [
{ "visible": false, "targets": 0 }
],
"order": [[ 0, 'asc' ]],
"processing": true,
"stateSave": true,
"pageLength": 25,
"language": {
"search": 'Filter records: '
},
"columnDefs": [
{ "visible": false, "targets": 0 }
],
"order": [[ 0, 'asc' ]],
"drawCallback": function ( settings ) {
var api = this.api();
var rows = api.rows( {page:'current'} ).nodes();