Fix an issue with playlist item matching

This commit is contained in:
Calvin Montgomery 2017-03-26 11:04:02 -07:00
parent 5e537fa8db
commit 0ce6fbba20
2 changed files with 4 additions and 3 deletions

View file

@ -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"
},

View file

@ -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;