DataTables for admin user management tab

This commit is contained in:
Eric A. Miller
2014-06-19 19:11:05 -04:00
parent deb33ed79c
commit 17db8fe190

View File

@@ -1,4 +1,4 @@
<table class="table table-bordered table-striped nd_floatinghead"> <table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th class="nd_center-cell">Full Name</th> <th class="nd_center-cell">Full Name</th>
@@ -75,3 +75,26 @@
</tbody> </tbody>
</table> </table>
<script>
$(document).ready(function() {
$('#data-table').dataTable({
"processing": true,
"stateSave": true,
"pageLength": 25,
"language": {
"search": 'Filter records: '
},
"columnDefs": [
{
"targets": [ 2, 3, 4, 5, 6 ],
"searchable": false
},
{
"targets": [ 0, 1, 2, 3, 4, 5, 6 ],
"orderable": false
}
]
} );
} );
</script>