From e5b61ef91c5a1adbcdc309d4d3aeed1142a4e0f3 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 17 Apr 2013 14:05:45 -0500 Subject: [PATCH] Add button to get playlist URLs --- user.js | 6 ++++ www/assets/js/client.js | 61 +++++++++++++++++++++++++++++++++++++++-- www/index.html | 1 + 3 files changed, 66 insertions(+), 2 deletions(-) diff --git a/user.js b/user.js index 5fc1bd24..c9de7bf7 100644 --- a/user.js +++ b/user.js @@ -108,6 +108,12 @@ User.prototype.initCallbacks = function() { this.playerReady = true; }.bind(this)); + this.socket.on("requestPlaylist", function() { + if(this.channel != null) { + this.channel.sendPlaylist(this); + } + }.bind(this)); + this.socket.on("queue", function(data) { if(this.channel != null) { this.channel.tryQueue(this, data); diff --git a/www/assets/js/client.js b/www/assets/js/client.js index cd9b0ea6..09fe46c3 100644 --- a/www/assets/js/client.js +++ b/www/assets/js/client.js @@ -80,8 +80,7 @@ if(params["channel"] == undefined) { var label = $("