Maybe this will solve the mystery of the floating clocks? Time will tell
This commit is contained in:
parent
36445bed6e
commit
1230e8493d
|
|
@ -63,10 +63,14 @@ function findUserlistItem(name) {
|
||||||
if(children.length == 0)
|
if(children.length == 0)
|
||||||
return null;
|
return null;
|
||||||
name = name.toLowerCase();
|
name = name.toLowerCase();
|
||||||
for(var i in children) {
|
// WARNING: Incoming hax because of jQuery and bootstrap bullshit
|
||||||
var child = children[i];
|
var keys = Object.keys(children);
|
||||||
if(typeof child.children === "undefined")
|
for(var k in keys) {
|
||||||
|
var i = keys[k];
|
||||||
|
if(isNaN(parseInt(i))) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
var child = children[i];
|
||||||
if($(child.children[1]).text().toLowerCase() == name)
|
if($(child.children[1]).text().toLowerCase() == name)
|
||||||
return $(child);
|
return $(child);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue