Fix userlist sorting, tweak name tab completion

This commit is contained in:
calzoneman 2013-03-20 13:10:34 -05:00
parent e76f149916
commit 755c4f49fd
2 changed files with 5 additions and 1 deletions

View File

@ -190,6 +190,10 @@ $('#chatline').keydown(function(ev) {
}
if(match != null) {
words[words.length - 1] = match;
if(words.length == 1)
words[0] += ": ";
else
words[words.length - 1] += " ";
$('#chatline').val(words.join(' '));
}
ev.preventDefault();

View File

@ -21,7 +21,7 @@ function addUser(name, rank, leader) {
var users = $('#userlist').children();
for(var i = 0; i < users.length; i++) {
var othername = users[i].children[1].innerHTML;
if(othername > name) {
if(othername.toLowerCase() > name.toLowerCase()) {
$(div).insertBefore(users[i]);
return;
}