See ChangeLog.

Monotone-Parent: 6718f18630754067ecb8f4e05b1d9aab60215e79
Monotone-Revision: d0a487816750ff28414ee58d1b18b6958dba1a95

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-03-13T13:15:14
This commit is contained in:
Francis Lachapelle
2012-03-13 13:15:14 +00:00
parent 871ea235b9
commit c3e67c40b3
2 changed files with 10 additions and 5 deletions
+5 -5
View File
@@ -18,21 +18,21 @@ function addUser(userName, userID, type) {
newNode.addClassName("normal-" + type);
var count = lis.length - 1;
var nextLi = null;
while (count > -1 && !nextLi) {
var inserted = false;
while (count > -1 && !inserted) {
if ($(lis[count]).hasClassName("normal-user")) {
if ((count+1) < lis.length)
ul.insertBefore(newNode, lis[count+1]);
else
ul.appendChild(newNode);
break;
inserted = true;
}
else {
count--;
}
}
if (!nextLi) {
if (count > 0)
if (!inserted) {
if (lis.length > 0)
ul.insertBefore(newNode, lis[0]);
else
ul.appendChild(newNode);