diff --git a/package.json b/package.json index c1535e5c..20fa5ec1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.34.6", + "version": "3.34.7", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/js/util.js b/www/js/util.js index 78b85b8d..c04bc5c7 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1202,12 +1202,13 @@ AsyncQueue.prototype.reset = function () { var PL_ACTION_QUEUE = new AsyncQueue(); // Because jQuery UI does weird things +// 2017-03-26: Does it really though? I have no idea if this is still needed. function playlistFind(uid) { var children = document.getElementById("queue").children; for(var i in children) { - if(typeof children[i].getAttribute != "function") + if(typeof children[i].className != "string") continue; - if(children[i].getAttribute("class").indexOf("pluid-" + uid) != -1) + if(children[i].className.split(" ").indexOf("pluid-" + uid) > 0) return children[i]; } return false;