Implement shuffle/clear (Issue #48)

This commit is contained in:
calzoneman 2013-04-22 15:37:42 -05:00
parent ce34a3efe0
commit 27c494e450
4 changed files with 64 additions and 1 deletions

View file

@ -295,6 +295,14 @@ $("#chatline").keydown(function(ev) {
$("#messagebuffer").mouseenter(function() { SCROLLCHAT = false; });
$("#messagebuffer").mouseleave(function() { SCROLLCHAT = true; });
$("#clearplaylist").click(function() {
socket.emit("clearqueue");
});
$("#shuffleplaylist").click(function() {
socket.emit("shufflequeue");
});
$("#getplaylist").click(function() {
var callback = function(data) {
socket.listeners("playlist").splice(