Created
September 18, 2016 17:23
-
-
Save nanosplit/82cc18443d9ba9fe568b948f638a7cf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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