Fix #656
This commit is contained in:
parent
5bdf8b4aaf
commit
f42e3bf2b7
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.34.8",
|
"version": "3.34.9",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -212,6 +212,7 @@ User.prototype.setAFK = function (afk) {
|
||||||
this.setFlag(Flags.U_AFK);
|
this.setFlag(Flags.U_AFK);
|
||||||
if (this.channel.modules.voteskip) {
|
if (this.channel.modules.voteskip) {
|
||||||
this.channel.modules.voteskip.unvote(this.realip);
|
this.channel.modules.voteskip.unvote(this.realip);
|
||||||
|
this.socket.emit("clearVoteskipVote");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.clearFlag(Flags.U_AFK);
|
this.clearFlag(Flags.U_AFK);
|
||||||
|
|
|
@ -1102,6 +1102,12 @@ Callbacks = {
|
||||||
if (formGroup.length > 0) {
|
if (formGroup.length > 0) {
|
||||||
formGroup.removeClass("has-error");
|
formGroup.removeClass("has-error");
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
clearVoteskipVote: function () {
|
||||||
|
if (CHANNEL.opts.allow_voteskip && hasPermission("voteskip")) {
|
||||||
|
$("#voteskip").attr("disabled", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue