From f1afa88ac1e7b4d8794206f82e5d17c8071fa991 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 16 Nov 2011 10:38:25 -0500 Subject: [PATCH] Do not sort the data in the tables until a user clicks on the header. --- xonstat/static/js/default.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xonstat/static/js/default.js b/xonstat/static/js/default.js index 18dc39a..af05cd4 100644 --- a/xonstat/static/js/default.js +++ b/xonstat/static/js/default.js @@ -52,7 +52,8 @@ function init_datatables() { "bFilter": false, "bSort": true, "bInfo": false, - "bAutoWidth": false + "bAutoWidth": false, + "aaSorting": [] }); } if ($("#recent-games").length) { @@ -66,7 +67,7 @@ function init_datatables() { "oLanguage": { "sSearch": "_INPUT_" }, - "aaSorting": [[ 0, "desc" ]] + "aaSorting": [] }); } if ($("table.scoreboard").length) { @@ -76,7 +77,8 @@ function init_datatables() { "bFilter": false, "bSort": true, "bInfo": false, - "bAutoWidth": false + "bAutoWidth": false, + "aaSorting": [] }); } if ($("table.accuracy").length) { @@ -86,7 +88,8 @@ function init_datatables() { "bFilter": false, "bSort": true, "bInfo": false, - "bAutoWidth": false + "bAutoWidth": false, + "aaSorting": [] }); } if ($(".recent_game_box").length) { -- 2.39.2