Maybe this will solve the mystery of the floating clocks? Time will tell

This commit is contained in:
calzoneman 2013-08-25 22:06:32 -05:00
parent 36445bed6e
commit 1230e8493d
1 changed files with 7 additions and 3 deletions

View File

@ -63,10 +63,14 @@ function findUserlistItem(name) {
if(children.length == 0)
return null;
name = name.toLowerCase();
for(var i in children) {
var child = children[i];
if(typeof child.children === "undefined")
// WARNING: Incoming hax because of jQuery and bootstrap bullshit
var keys = Object.keys(children);
for(var k in keys) {
var i = keys[k];
if(isNaN(parseInt(i))) {
continue;
}
var child = children[i];
if($(child.children[1]).text().toLowerCase() == name)
return $(child);
}