diff --git a/assets/js/sportspress.js b/assets/js/sportspress.js index 16638f78..92be39b2 100644 --- a/assets/js/sportspress.js +++ b/assets/js/sportspress.js @@ -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,