mirror of https://github.com/calzoneman/sync.git
A few minor changes
- Fix paginator always showing 5 buttons even if there are less pages - Clear AFK timer when clicking voteskip - Change the modestbranding youtube param because people wanted the like/dislike buttons
This commit is contained in:
parent
9256928d82
commit
07a3e3cc21
|
@ -1516,9 +1516,8 @@ Channel.prototype.tryVoteskip = function(user) {
|
|||
return;
|
||||
}
|
||||
// Voteskip = auto-unafk
|
||||
if(user.meta.afk) {
|
||||
user.setAFK(false);
|
||||
}
|
||||
user.setAFK(false);
|
||||
user.autoAFK();
|
||||
if(!this.voteskip) {
|
||||
this.voteskip = new Poll("voteskip", "voteskip", ["yes"]);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
.appendTo(sep);
|
||||
}
|
||||
}
|
||||
for(var i = s; i < s + this.opts.maxPages; i++) {
|
||||
for(var i = s; i < s + this.opts.maxPages && i < s + pages; i++) {
|
||||
(function (i) {
|
||||
var li = $("<li/>").appendTo(ul);
|
||||
if(i == p)
|
||||
|
|
|
@ -37,7 +37,6 @@ var YouTubePlayer = function (data) {
|
|||
autoplay: 1, // Autoplay video
|
||||
controls: 1, // Show controls
|
||||
iv_load_policy: 3, // No annotations
|
||||
modestbranding: 1, // No logo
|
||||
rel: 0, // No related videos
|
||||
wmode: wmode
|
||||
},
|
||||
|
|
|
@ -1499,12 +1499,12 @@ function genPermissionsEditor() {
|
|||
makeOption("Jump to video", "playlistjump", standard, CHANNEL.perms.playlistjump+"");
|
||||
makeOption("Queue playlist", "playlistaddlist", standard, CHANNEL.perms.playlistaddlist+"");
|
||||
makeOption("Queue livestream", "playlistaddlive", standard, CHANNEL.perms.playlistaddlive+"");
|
||||
makeOption("Embed custom media", "playlistaddcustom", standard, CHANNEL.perms.playlistaddcustom + "");
|
||||
makeOption("Exceed maximum media length", "exceedmaxlength", standard, CHANNEL.perms.exceedmaxlength+"");
|
||||
makeOption("Add nontemporary media", "addnontemp", standard, CHANNEL.perms.addnontemp+"");
|
||||
makeOption("Temp/untemp playlist item", "settemp", standard, CHANNEL.perms.settemp+"");
|
||||
makeOption("Shuffle playlist", "playlistshuffle", standard, CHANNEL.perms.playlistshuffle+"");
|
||||
makeOption("Clear playlist", "playlistclear", standard, CHANNEL.perms.playlistclear+"");
|
||||
makeOption("Embed custom media", "playlistaddcustom", standard, CHANNEL.perms.playlistaddcustom + "");
|
||||
|
||||
addDivider("Polls");
|
||||
makeOption("Open/Close poll", "pollctl", modleader, CHANNEL.perms.pollctl+"");
|
||||
|
|
Loading…
Reference in New Issue