Fix an issue with playlist item matching
This commit is contained in:
parent
5e537fa8db
commit
0ce6fbba20
|
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.34.6",
|
"version": "3.34.7",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1202,12 +1202,13 @@ AsyncQueue.prototype.reset = function () {
|
||||||
var PL_ACTION_QUEUE = new AsyncQueue();
|
var PL_ACTION_QUEUE = new AsyncQueue();
|
||||||
|
|
||||||
// Because jQuery UI does weird things
|
// 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) {
|
function playlistFind(uid) {
|
||||||
var children = document.getElementById("queue").children;
|
var children = document.getElementById("queue").children;
|
||||||
for(var i in children) {
|
for(var i in children) {
|
||||||
if(typeof children[i].getAttribute != "function")
|
if(typeof children[i].className != "string")
|
||||||
continue;
|
continue;
|
||||||
if(children[i].getAttribute("class").indexOf("pluid-" + uid) != -1)
|
if(children[i].className.split(" ").indexOf("pluid-" + uid) > 0)
|
||||||
return children[i];
|
return children[i];
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue