User column sorts only multi-sorts by [Active,A-z]

This commit is contained in:
Sam Nicholls 2013-01-21 00:28:11 +00:00
parent 0343da92d5
commit 15eacfd446

View File

@ -23,7 +23,9 @@ block content
$('.data').dataTable({ $('.data').dataTable({
"aoColumnDefs": [ "aoColumnDefs": [
{ "sType": "forcenum", "aTargets": [ 1, 2, 3, 4, 5 ] } { "aDataSort": [ 1, 0 ], "asSorting": [ "asc" ], "aTargets": [ 0 ] },
{ "bVisible": false, "aTargets": [ 1 ] },
{ "sType": "forcenum", "aTargets": [ 2, 3, 4, 5, 6 ] }
], ],
"bPaginate": false, "bPaginate": false,
"bLengthChange": false, "bLengthChange": false,
@ -32,7 +34,6 @@ block content
"sInfoEmpty": "No users", "sInfoEmpty": "No users",
"sInfoFiltered": "filtered (_MAX_ total)" "sInfoFiltered": "filtered (_MAX_ total)"
}, },
"aaSorting": [], // Disable initial sort
}); });
}); });
@ -44,6 +45,7 @@ block content
thead thead
tr tr
th Users th Users
th
th Lines th Lines
th Words th Words
th Lincent th Lincent
@ -63,6 +65,14 @@ block content
span.label.label-important Inactive span.label.label-important Inactive
else else
span.label Offline span.label Offline
td
if nick.online
if nick.active
-1
else
0
else
1
td td
#{nick.fields.lines.data} #{nick.fields.lines.data}
td td