Fix previous commit

This commit is contained in:
Calvin Montgomery 2013-06-24 23:03:21 -04:00
parent 7e356f38a8
commit dde7ae2c79

View file

@ -626,10 +626,11 @@ Callbacks = {
q.html(""); q.html("");
for(var i = 0; i < data.length; i++) { for(var i = 0; i < data.length; i++) {
Callbacks.queue({ var li = makeQueueEntry(data[i], false);
media: data[i], li.attr("title", data[i].queueby
pos: q.children().length ? ("Added by: " + data[i].queueby)
}); : "Added by: Unknown");
li.appendTo(q);
} }
}, },
@ -642,9 +643,8 @@ Callbacks = {
}, },
queue: function(data) { queue: function(data) {
var li = makeQueueEntry(data.media, true); var li = makeQueueEntry(data.media, false);
li.hide(); li.hide();
addQueueButtons(li);
var idx = data.pos; var idx = data.pos;
var q = $("#queue"); var q = $("#queue");
li.attr("title", data.media.queueby li.attr("title", data.media.queueby