Merge pull request #178 from SamStudio8/master

User column sorts only multi-sorts by [Active,A-z]
This commit is contained in:
Luke Slater 2013-01-20 16:30:22 -08:00
commit 5485c39684

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