mirror of https://github.com/calzoneman/sync.git
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)
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue