mirror of https://github.com/calzoneman/sync.git
Fix userlist sorting, tweak name tab completion
This commit is contained in:
parent
e76f149916
commit
755c4f49fd
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue