Add playlist length indicator (Issue #51)

It's not exactly pretty, but I'm hoping to have someone help me pretty up the interface this summer
This commit is contained in:
calzoneman 2013-04-24 14:28:20 -05:00
parent 57475d5d3d
commit 623aec89b1
5 changed files with 63 additions and 1 deletions

View file

@ -253,6 +253,11 @@ function initCallbacks() {
}
});
socket.on("updatePlaylistMeta", function(data) {
$("#plcount").text(data.count + " items");
$("#pllength").text(data.time);
});
socket.on("queue", function(data) {
var li = makeQueueEntry(data.media);
if(RANK >= Rank.Moderator || OPENQUEUE || LEADER)