mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-13 15:35:30 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user