Skip to content

Instantly share code, notes, and snippets.

@nanosplit
Created September 18, 2016 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanosplit/82cc18443d9ba9fe568b948f638a7cf5 to your computer and use it in GitHub Desktop.
Save nanosplit/82cc18443d9ba9fe568b948f638a7cf5 to your computer and use it in GitHub Desktop.
// a noobs no good very bad javascript...
$(function() {
$('#membershipsTable').DataTable({
'order': [[1, 'asc']],
'columnDefs': [{
'targets': [3],
'orderable': false
}],
});
});
$(function() {
$('#contactsTable').DataTable({
'order': [[1, 'asc']],
'columnDefs': [{
'targets': [7],
'orderable': false
}],
});
});
$(function() {
$('#locationsTable').DataTable({
'order': [[3, 'asc']],
'columnDefs': [{
'targets': [7],
'orderable': false
}],
});
});
$(function() {
$('#userTable').DataTable({
'order': [[2, 'asc']],
'columnDefs': [{
'targets': [1,3,4,5],
'orderable': false
}],
});
});
$(function() {
$('#alertsTable').DataTable({
'order': [[0, 'asc']],
'columnDefs': [{
'targets': [4],
'orderable': false
}],
});
});
$(function() {
$('#managerAlertsTable').DataTable({
'order': [[0, 'asc']]
});
});
$(function() {
$('#invoiceTable').DataTable({
'order': [[5, 'asc']],
'columnDefs': [{
'targets': [0,1,5],
'orderable': false
}],
});
});
$(function() {
$('#adminFaqTable').DataTable({
'order': [[1, 'asc']],
'columnDefs': [{
'targets': [2],
'orderable': false
}],
});
});
$(function() {
$('#staffTable').DataTable({
'order': [[1, 'asc']],
'columnDefs': [{
'targets': [5],
'orderable': false
}],
});
});
$(function() {
$('#adminStaffTable').DataTable({
'order': [[0, 'asc']],
'columnDefs': [{
'targets': [6],
'orderable': false
}],
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment