Same data tables behaviour for every table

This commit is contained in:
Brian Miyaji
2014-01-22 21:03:12 +11:00
parent 4f24611dbd
commit 1a4319a641

View File

@@ -1,42 +1,7 @@
(function($) {
// League Table Sorting
$(".sp-league-table").dataTable({
"aaSorting": [],
"bAutoWidth": false,
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"bSort": true,
"oLanguage": {
"oAria": {
"sSortAscending": "",
"sSortDescending": ""
}
}
});
// Player List Sorting
$(".sp-player-list").dataTable({
"aaSorting": [],
"bAutoWidth": false,
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"bSort": true,
"oLanguage": {
"oAria": {
"sSortAscending": "",
"sSortDescending": ""
}
},
"aoColumnDefs": [
{ "asSorting": [ "asc" ], "aTargets": [ 0 ] },
]
});
// Player Statistics Sorting
$(".sp-player-statistics").dataTable({
// Data Tables
$(".sp-data-table").dataTable({
"aaSorting": [],
"bAutoWidth": false,
"bFilter": false,