From: Ant Zucaro <azucaro@gmail.com>
Date: Wed, 16 Nov 2011 15:38:25 +0000 (-0500)
Subject: Do not sort the data in the tables until a user clicks on the header.
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1afa88ac1e7b4d8794206f82e5d17c8071fa991;p=xonotic%2Fxonstat.git

Do not sort the data in the tables until a user clicks on the header.
---

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) {