From 1230e8493d51477c6eba723352294db12044c6ed Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 25 Aug 2013 22:06:32 -0500 Subject: [PATCH] Maybe this will solve the mystery of the floating clocks? Time will tell --- www/assets/js/util.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 2b3153c9..982fee5a 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -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); }