2017-02-03 06:52:07 +08:00
|
|
|
// Initialize teams DataTable
|
|
|
|
function initTeamsTable() {
|
|
|
|
teamsDatatable = $('#teams-table').DataTable({
|
|
|
|
order: [[0, 'asc']],
|
|
|
|
dom: 'RBltpi',
|
|
|
|
stateSave: true,
|
|
|
|
buttons: [],
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
ajax: {
|
|
|
|
url: $('#teams-table').data('source'),
|
|
|
|
type: 'POST'
|
|
|
|
},
|
|
|
|
colReorder: {
|
|
|
|
fixedColumnsLeft: 1000000 // Disable reordering
|
|
|
|
},
|
|
|
|
columnDefs: [{
|
2017-02-07 00:17:48 +08:00
|
|
|
targets: [0, 1, 2],
|
2017-02-03 06:52:07 +08:00
|
|
|
orderable: true,
|
|
|
|
searchable: false
|
|
|
|
}, {
|
2017-02-07 00:08:20 +08:00
|
|
|
targets: 3,
|
2017-02-03 06:52:07 +08:00
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
sWidth: '1%'
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
initTeamsTable();
|