Implement shuffle/clear (Issue #48)
This commit is contained in:
parent
ce34a3efe0
commit
27c494e450
4 changed files with 64 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue