]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Do not sort the data in the tables until a user clicks on the header.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 16 Nov 2011 15:38:25 +0000 (10:38 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 16 Nov 2011 15:38:25 +0000 (10:38 -0500)
xonstat/static/js/default.js

index 18dc39ae22f678c9c9203938894fb28f97da3869..af05cd4e6f2c44618668ebbd07626d4685fc657a 100644 (file)
@@ -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) {