Ability to hide playlist
This commit is contained in:
parent
6292ca5f3f
commit
6e0f27f254
4 changed files with 33 additions and 5 deletions
|
|
@ -790,6 +790,10 @@ Callbacks = {
|
|||
},
|
||||
|
||||
changeMedia: function(data) {
|
||||
if ($("body").hasClass("chatOnly")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (PLAYER && typeof PLAYER.getVolume === "function") {
|
||||
PLAYER.getVolume(function (v) {
|
||||
if (typeof v === "number") {
|
||||
|
|
@ -848,6 +852,10 @@ Callbacks = {
|
|||
},
|
||||
|
||||
mediaUpdate: function(data) {
|
||||
if ($("body").hasClass("chatOnly")) {
|
||||
return;
|
||||
}
|
||||
|
||||
handleMediaUpdate(data);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -888,6 +888,9 @@ function handlePermissionChange() {
|
|||
setVisible("#adminflair", CLIENT.rank >= 255);
|
||||
setVisible("#guestlogin", CLIENT.rank < 0);
|
||||
setVisible("#chatline", CLIENT.rank >= 0);
|
||||
setVisible("#queue", hasPermission("seeplaylist"));
|
||||
setVisible("#plmeta", hasPermission("seeplaylist"));
|
||||
$("#getplaylist").attr("disabled", !hasPermission("seeplaylist"));
|
||||
|
||||
setVisible("#showmediaurl", hasPermission("playlistadd"));
|
||||
setVisible("#showcustomembed", hasPermission("playlistaddcustom"));
|
||||
|
|
@ -1617,6 +1620,7 @@ function genPermissionsEditor() {
|
|||
makeOption("Queue playlist", "oplaylistaddlist", standard, CHANNEL.perms.oplaylistaddlist+"");
|
||||
|
||||
addDivider("General playlist permissions");
|
||||
makeOption("View the playlist", "seeplaylist", standard, CHANNEL.perms.seeplaylist+"");
|
||||
makeOption("Add to playlist", "playlistadd", standard, CHANNEL.perms.playlistadd+"");
|
||||
makeOption("Add/move to next", "playlistnext", standard, CHANNEL.perms.playlistnext+"");
|
||||
makeOption("Move playlist items", "playlistmove", standard, CHANNEL.perms.playlistmove+"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue