Display statistics on player profile page

This commit is contained in:
Brian Miyaji
2014-01-14 00:58:18 +11:00
parent d8c1b13646
commit bd919ad121
6 changed files with 273 additions and 152 deletions

View File

@@ -1,7 +1,7 @@
(function($) {
// Data tables
$(".sp-data-table").dataTable({
// League Table Sorting
$(".sp-league-table").dataTable({
"aaSorting": [],
"bAutoWidth": false,
"bFilter": false,
@@ -15,8 +15,43 @@
}
},
"aoColumnDefs": [
{ "asSorting": [ "asc" ], "aTargets": [ 0 ] }
{ "asSorting": [ "asc" ], "aTargets": [ 0 ] },
]
});
// 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({
"aaSorting": [],
"bAutoWidth": false,
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"bSort": true,
"oLanguage": {
"oAria": {
"sSortAscending": "",
"sSortDescending": ""
}
}
});
})(jQuery);