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(
|
||||
|
|
|
|||
|
|
@ -86,7 +86,11 @@
|
|||
<ul id="queue" class="videolist">
|
||||
</ul>
|
||||
<button class="btn btn-danger" id="qlockbtn" style="width: 100%; display:none;">Unlock Queue</button>
|
||||
<button class="btn" id="getplaylist" style="width: 100%;">Get Playlist URLs</button>
|
||||
<div class="btn-group" style="width: 100%;">
|
||||
<button class="btn" id="getplaylist" style="width: 34%">Get Playlist URLs</button>
|
||||
<button class="btn" id="clearplaylist" style="width: 33%">Clear Playlist</button>
|
||||
<button class="btn" id="shuffleplaylist" style="width: 33%">Shuffle Playlist</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6" id="librarydiv">
|
||||
<div class="input-append">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue