Add configurable voteskip ratio, show # voteskips to mods
This commit is contained in:
parent
6e6f6217b0
commit
40ad039a06
5 changed files with 42 additions and 5 deletions
|
|
@ -75,6 +75,7 @@ function initCallbacks() {
|
|||
.insertAfter($("link[href='./assets/css/ytsync.css']"));
|
||||
}
|
||||
$("#opt_allow_voteskip").prop("checked", opts.allow_voteskip);
|
||||
$("#opt_voteskip_ratio").val(opts.voteskip_ratio);
|
||||
if(opts.customjs.trim() != "") {
|
||||
$.getScript(opts.customjs);
|
||||
}
|
||||
|
|
@ -100,6 +101,15 @@ function initCallbacks() {
|
|||
updateBanlist(data.entries);
|
||||
});
|
||||
|
||||
socket.on("voteskip", function(data) {
|
||||
if(data.count > 0) {
|
||||
$("#voteskip").text("Voteskip ("+data.count+"/"+data.need+")");
|
||||
}
|
||||
else {
|
||||
$("#voteskip").text("Voteskip");
|
||||
}
|
||||
});
|
||||
|
||||
/* REGION Rank Stuff */
|
||||
|
||||
socket.on("rank", function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue