mirror of https://github.com/calzoneman/sync.git
Move/change playlist lock button
This commit is contained in:
parent
d3cda0517c
commit
0cc230f192
|
@ -872,12 +872,18 @@ Callbacks = {
|
|||
if(CHANNEL.openqueue) {
|
||||
$("#qlockbtn").removeClass("btn-danger")
|
||||
.addClass("btn-success")
|
||||
.text("Lock Playlist");
|
||||
.attr("title", "Playlist Unlocked");
|
||||
$("#qlockbtn").find("i")
|
||||
.removeClass("icon-lock")
|
||||
.addClass("icon-ok");
|
||||
}
|
||||
else {
|
||||
$("#qlockbtn").removeClass("btn-success")
|
||||
.addClass("btn-danger")
|
||||
.text("Unlock Playlist");
|
||||
.attr("title", "Playlist Locked");
|
||||
$("#qlockbtn").find("i")
|
||||
.removeClass("icon-ok")
|
||||
.addClass("icon-lock");
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -876,7 +876,7 @@ function handlePermissionChange() {
|
|||
|
||||
setVisible("#playlisttogglewrap", hasPermission("playlistadd"));
|
||||
$("#queue_next").attr("disabled", !hasPermission("playlistnext"));
|
||||
setVisible("#qlockbtn", CLIENT.rank >= 2);
|
||||
$("#qlockbtn").attr("disabled", CLIENT.rank < 2);
|
||||
|
||||
if(hasPermission("playlistadd") ||
|
||||
hasPermission("playlistmove") ||
|
||||
|
|
|
@ -183,15 +183,17 @@
|
|||
<br>
|
||||
</div>
|
||||
<div id="extended_controls" class="span12">
|
||||
<button class="btn btn-danger btn-block" id="qlockbtn">Unlock Queue</button>
|
||||
<button class="btn btn-block" id="clearplaylist">Clear Playlist</button>
|
||||
<button class="btn btn-block" id="shuffleplaylist">Shuffle Playlist</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-group span12">
|
||||
<button class="btn" style="width: 50%" id="voteskip">Voteskip</button>
|
||||
<button class="btn" style="width: 50%" id="getplaylist">Get Playlist URLs</button>
|
||||
<button class="btn" style="width: 46%" id="voteskip">Voteskip</button>
|
||||
<button class="btn" style="width: 46%" id="getplaylist">Get Playlist URLs</button>
|
||||
<button class="btn btn-danger" style="width: 8%" id="qlockbtn" title="Playlist Locked">
|
||||
<i class="icon-lock"></i>
|
||||
</button>
|
||||
</div>
|
||||
<!-- video queue -->
|
||||
<ul class="span12 videolist" id="queue">
|
||||
|
|
Loading…
Reference in New Issue